Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to be able to save several objects which are linked each other. Idea is to have a Client object, Project object, Work object which will interfere each other. All data within will be as string and int. Everything will be joined in Record Object in which I will choose values from mentions object plus adding new entries.
What would be the best way to save all into a file - serialization? Is it possible to do it with some kind of data base? So far it is recorded in Excel table.
Serialization is fast and compact way to do it, but with linq you have XML and XML serialization which is closer to what you are looking for :
http://msdn.microsoft.com/en-us/library/bb387098.aspx
To go further Linq was created to simplify database queries so by default you will be able to access any ODBC compatible database (sqLite MySQL etc...)
FYI : You can Edit XML and XML scheme with Excel (if that's the kind of things your're into)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have an application that gets all its data from an old AS400 application.
I get a model out (what in MVC I'd call a ViewModel) that has all the data for the reports, but the current legacy code is using the windows forms drawing API to place each box and label and data value on the report. It is hard-coded and maintenance is what you'd expect in terms of nightmare level.
I want to switch over to a report based on the data object or a collection thereof. I know how to write code against an object data source in ASP.Net, but I was wondering if the same can be done using SSRS for the report design, then using the objects collection as the data source. Has anyone done this?
Joey Morgan
SSRS is very extensible and you can write your own custom data processing extension that processes whatever data you have (in your case, the objects collection) and turns it into a dataset.
I've done this and while it isn't trivial, it isn't as hard as you might think and implementing a custom data processing extension may be a good way to solve your problem. There are plenty of examples online to get you started. I based mine on the file share example provided with SSRS that queries a network folder and returns the file information as a dataset.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have Email application. Currently I store all the data in MySQL database. I want to store data periodically in local file in XML or JSON format. So, when there is no database connection, I can use this local file to open and manage application locally.
I have Class Entity for each table of the database in my application and I retrieve all the data from database to Class object List.
I want to store information of email, contact and calendar in local file.
I want functionality to add/Update/delete emails, contact and calendar in local file.
Can anybody suggest me which option should I use? XML or JSON?
You can serialize your objects to either, so it is your choice / personal preference.
JSON has become the standard for data transfer, through the adoption of AJAX calls, although XML is still widely used.
If space is an issue, JSON uses less space.
If there is no reason to use XML, then JSON would seem like a good way to go.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I've developed a desktop application(Accountant App). This application is going to import invoices data and do a lot of other things. All data will be stored on remote database (SQL Server). This app needs some 'pre loaded data' to work properly, like a list containing a bunch of cities etc. My question is: Is better to have this data (cities, states, zipcodes) stored in the remote database or is better to use xml, csv files and deploy them with each individual instance of the application? This data will be updated eventually. And this data will be used frequently by the users.
Well you can either use an external file or store them in the database. I think storing it in the database is the better approach since you won't have to distribute another extra file and all of your data will be at one place. Don't forget to seed the data every time you clear the database though.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We have configuration data stored within the tables like casestatustypes with columns such as statusid, name, description. How to store these kind of data in the web application, instead of hitting the database each time for retrieving the statusid.
You use a technique known as caching. Basically, you build an in-memory copy of the data that you use for retrieval purposes. When you start the application, you pull from the database to create this cache. When you do an insert, update, or delete; you do it to both the cache and database.
Its easy enough to implement yourself, and there are several good libraries out there (Microsoft even has one in Enterprise Library http://msdn.microsoft.com/library/cc467894.aspx).
Gotchas:
If the data set is large, you'll want to implement a caching strategy that doesn't hold the entire dataset in memory (libraries are useful for this).
Since its a web-app, you need to make sure the cache isn't going to be re-created for each session.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
This might be confusing question but I don't know which is the better way to ask my question.
I am developing a software which has predefined data/logic in some scenario.
For example:
For mails, there are predefined list of email addresses to send in CC or BCC.
For using specific kind of email template in specific scenario is fixed on predefined condition.
I want to manage this kind of predefined logic/data separated in my project. So if there is any change in that data, I can easily change it from single place. For that I have many ideas in my mind. Suggest me which would be better. And if you have any other idea please share with me.
Make a class & store predefined data in variables. or use methods for logic.
Define all predefined data in web.config
For emails you can have groups /ids for scenarios and map those ids in database.Then at runtime just pick cc and bcc ids from database. If database is much of overhead , store them in some xml file .This way any change would be required in database only and code wont require much change.Same goes for email template.