Esempio n. 1
0
        public void InsertData1(string username, string filename, string richtext)
        {
            DataClasses1DataContext db = new DataClasses1DataContext();

            //create a new row object
            serverdb row = new serverdb
            {
                uid      = Guid.NewGuid(),
                username = username,
                filename = filename,
                richtext = richtext
            };

            //add the new item to the collection
            db.serverdbs.InsertOnSubmit(row);

            //submit this change to the database
            db.SubmitChanges();
        }
Esempio n. 2
0
 partial void Deleteserverdb(serverdb instance);
Esempio n. 3
0
 partial void Updateserverdb(serverdb instance);
Esempio n. 4
0
 partial void Insertserverdb(serverdb instance);