private static void DeletedRelatedModel(DataRow dr) { Model22 md = new Model22(); md.Where.IssueDocID.Value = (int)dr["ID"]; md.Query.Load(); md.DeleteAll(); md.Save(); }
private static void DeletedRelatedModel(IssueDoc iss) { Model22 md = new Model22(); md.Where.IssueDocID.Value = iss.ID; md.Query.Load(); md.DeleteAll(); md.Save(); }