public static void Insert_Post(int ClusterID, string PostName, string PostSerialNumber) { try { tbl_Post post = new tbl_Post(); post.PostName = PostName; post.PostSerialNumber = PostSerialNumber; post.Cluster = ClusterID; post.CreateDate = DateTime.UtcNow; db.tbl_Posts.InsertOnSubmit(post); db.SubmitChanges(); } catch { } }
partial void Deletetbl_Post(tbl_Post instance);
partial void Inserttbl_Post(tbl_Post instance);
partial void Updatetbl_Post(tbl_Post instance);
private void detach_tbl_Posts(tbl_Post entity) { this.SendPropertyChanging(); entity.tbl_Cluster = null; }