Database-style replacement
-
Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.
-
Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.
u can use LINQ Method, in vs2008 & C#3.0...:suss:
-
Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.
You might want to look at SQL Server CE - which is a low footprint database that runs as a DLL in your application process space, i.e. no separate database to install.
Deja View - the feeling that you've seen this post before.
-
You might want to look at SQL Server CE - which is a low footprint database that runs as a DLL in your application process space, i.e. no separate database to install.
Deja View - the feeling that you've seen this post before.
Tried that. Asked below (see 'Connecting to a c# local datbase') Didn't work too well (couldn't connect to it properly)
-
Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.
You can use the WriteXml and ReadXml methods to save a DataTable as an xml file. That would give you at least the most basic fetures of a database with no installation needed. Perhaps you should consider using an MS Access database? It's file based and the drivers come pre-installed with windows.
Despite everything, the person most likely to be fooling you next is yourself.
-
Tried that. Asked below (see 'Connecting to a c# local datbase') Didn't work too well (couldn't connect to it properly)
Well it does work, and is the solution for your problem. Try googling the msdn for a walkthrough.
Mark Churchill Director, Dunn & Churchill Pty Ltd Free Download: Diamond Binding: The simple, powerful, reliable, and effective data layer toolkit for Visual Studio.
Alpha release: Entanglar: Transparant multiplayer framework for .Net games. -
Hello. I am looking for a method of using files in C# that act similar to Databases (i.e. in tables) that will load successfully into Visual C# Express edition without having to have a seperate program to run the database. Preferably something simple like text files but allowing for better structure (like database tables). Thanks.
Try SQLite. It's free, fast, needs only one dll and has ado.net managed provider. System.Data.SQLite[^]
Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion
-
Try SQLite. It's free, fast, needs only one dll and has ado.net managed provider. System.Data.SQLite[^]
Giorgi Dalakishvili #region signature My Articles / My Latest Article[^] / My blog[^] #endregion
Thanks, Tried it before & didn't work but since discovered how to add the library. So I will try it again. :-D