예제 #1
0
        private static void DeletedRelatedModel(DataRow dr)
        {
            Model22 md = new Model22();

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

            md.Where.IssueDocID.Value = iss.ID;
            md.Query.Load();
            md.DeleteAll();
            md.Save();
        }