static public void Delete(System.String territoryID, esSqlAccessType sqlAccessType)
        {
            var obj = new Territories();

            obj.TerritoryID = territoryID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
示例#2
0
 public void UpdateTerritories(BusinessObjects.Territories obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }