Пример #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);