示例#1
0
        static public void add()
        {
            LinesT toAdd = new LinesT();

            toAdd.Line    = "asf";
            toAdd.LineID  = 50;
            toAdd.StatusS = "work";

            Table <LinesT> lines = db.GetTable <LinesT>();

            lines.InsertOnSubmit(toAdd);
            db.SubmitChanges();

            var query = from l in lines
                        where l.StatusS == "work"
                        select l.Line;

            foreach (var item in query)
            {
                Console.WriteLine(item);
            }
        }
示例#2
0
 partial void UpdateLinesT(LinesT instance);
示例#3
0
 partial void DeleteLinesT(LinesT instance);
示例#4
0
 partial void InsertLinesT(LinesT instance);