Skip to content

A wrapper for a mysql database, which uses models to display data

Notifications You must be signed in to change notification settings

Masu-Baumgartner/DBST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBST

A wrapper for a mysql database, which uses models to display data

Examples

Setup mysql connection

MySQLActions.ConnectionString = $"server=<serverip>;" +
                                            $"port=<serverport>;" +
                                            $"database=<databasename>;" +
                                            $"uid=<username>;" +
                                            $"pwd=<password>";

Initialise table

Table = new DBST<TestModel>("test");

Insert model

Table.Insert(new TestModel()
            {
                Test1 = "foxy"
            });

More Examples

MySQLActions.ConnectionString = $"server=<serverip>;" +
                                                        $"port=<serverport>;" +
                                                        $"database=<databasename>;" +
                                                        $"uid=<username>;" +
                                                        $"pwd=<password>";

            Table = new DBST<TestModel>("test");

            Table.Insert(new TestModel()
            {
                Test1 = "foxy"
            });

            TestModel model = null;

            var m = Table.AsList().Find(x => x.Test1 == "foxy");

            m.Test1 = "fox";

            Table.Modify(m);

            Table.Delete(model);

About

A wrapper for a mysql database, which uses models to display data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages