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); } }
partial void UpdateLinesT(LinesT instance);
partial void DeleteLinesT(LinesT instance);
partial void InsertLinesT(LinesT instance);