static public void Delete(System.String customerTypeID, esSqlAccessType sqlAccessType) { var obj = new CustomerDemographics(); obj.CustomerTypeID = customerTypeID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public CustomerDemographicsProxyStub(CustomerDemographics obj, bool dirtyColumnsOnly) { theEntity = this.entity = obj; this.dirtyColumnsOnly = dirtyColumnsOnly; }
public CustomerDemographicsProxyStub CustomerDemographics_GetByPrimaryKey(System.String customerTypeID) { CustomerDemographics obj = new CustomerDemographics(); if (obj.LoadByPrimaryKey(customerTypeID)) { return obj; } return null; }
public CustomerDemographicsProxyStub(CustomerDemographics obj) { theEntity = this.entity = obj; }
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerDemographics_CustomerCustomerDemoCollectionByCustomerTypeID(System.String customerTypeID) { jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>(); try { CustomerDemographics entity = new CustomerDemographics(); entity.CustomerTypeID = customerTypeID; response.collection = entity.CustomerCustomerDemoCollectionByCustomerTypeID; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public CustomerDemographicsProxyStub CustomerDemographics_QueryForEntity(string serializedQuery) { CustomerDemographicsQuery query = CustomerDemographicsQuery.SerializeHelper.FromXml( serializedQuery, typeof(CustomerDemographicsQuery), AllKnownTypes) as CustomerDemographicsQuery; CustomerDemographics obj = new CustomerDemographics(); if (obj.Load(query)) { return obj; } return null; }
public jsResponse<CustomerDemographicsCollection, CustomerDemographics> CustomerDemographics_Save(CustomerDemographics entity) { jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<CustomerDemographicsCollection, CustomerDemographics> CustomerDemographics_LoadByPrimaryKey(System.String customerTypeID) { jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>(); try { CustomerDemographics entity = new CustomerDemographics(); if (entity.LoadByPrimaryKey(customerTypeID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void DeleteCustomerDemographics(BusinessObjects.CustomerDemographics obj) { BusinessObjects.CustomerDemographics.Delete(obj.CustomerTypeID); }
public void UpdateCustomerDemographics(BusinessObjects.CustomerDemographics obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public void InsertCustomerDemographics(BusinessObjects.CustomerDemographics obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }