Example #1
0
        static public void Delete(System.Int32 regionID, esSqlAccessType sqlAccessType)
        {
            var obj = new Region();

            obj.RegionID = regionID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
Example #2
0
        static public void Delete(System.Int32 regionID)
        {
            var obj = new Region();

            obj.RegionID = regionID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save();
        }
Example #3
0
 public void UpdateRegion(BusinessObjects.Region obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
		public jsResponse<RegionCollection, Region> Region_Save(Region entity)
		{
			jsResponse<RegionCollection, Region> response = new jsResponse<RegionCollection, Region>();

			try
			{
				entity.Save();
				response.entity = entity;
			}
			catch (Exception ex)
			{
				response.exception = ex.Message;
			}

			return response;
		}
Example #5
0
 public void InsertRegion(BusinessObjects.Region obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }