Ejemplo n.º 1
0
        static public void Delete(System.Int32 employeeID, System.String territoryID, esSqlAccessType sqlAccessType)
        {
            var obj = new EmployeeTerritories();

            obj.EmployeeID  = employeeID;
            obj.TerritoryID = territoryID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
Ejemplo n.º 2
0
 public void UpdateEmployeeTerritories(BusinessObjects.EmployeeTerritories obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
		public jsResponse<EmployeeTerritoriesCollection, EmployeeTerritories> EmployeeTerritories_Save(EmployeeTerritories entity)
		{
			jsResponse<EmployeeTerritoriesCollection, EmployeeTerritories> response = new jsResponse<EmployeeTerritoriesCollection, EmployeeTerritories>();

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

			return response;
		}
Ejemplo n.º 4
0
 public void InsertEmployeeTerritories(BusinessObjects.EmployeeTerritories obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }