partial void DeleteID(ID instance);
 partial void InsertID(ID instance);
 partial void UpdateID(ID instance);
Beispiel #4
0
            void createItem()
            {
                var con = ContextFactory.GetNewContext();

                var item = new ID()
                {
                    Key = Key,
                    MaxID = 0,
                    Cache = 20
                };
                // create new item with the key
                con.IDs.InsertOnSubmit(item);
                con.SubmitChanges();
            }