static public void Delete(System.Int32 shipperID, esSqlAccessType sqlAccessType) { var obj = new Shippers(); obj.ShipperID = shipperID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
static public void Delete(System.Int32 shipperID) { var obj = new Shippers(); obj.ShipperID = shipperID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(); }
public ShippersProxyStub(Shippers obj, bool dirtyColumnsOnly) { theEntity = this.entity = obj; this.dirtyColumnsOnly = dirtyColumnsOnly; }
public ShippersProxyStub(Shippers obj) { theEntity = this.entity = obj; }
public ShippersProxyStub Shippers_GetByPrimaryKey(System.Int32 shipperID) { Shippers obj = new Shippers(); if (obj.LoadByPrimaryKey(shipperID)) { return obj; } return null; }
public jsResponse<OrdersCollection, Orders> Shippers_OrdersCollectionByShipVia(System.Int32 shipperID) { jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>(); try { Shippers entity = new Shippers(); entity.ShipperID = shipperID; response.collection = entity.OrdersCollectionByShipVia; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public ShippersProxyStub Shippers_QueryForEntity(string serializedQuery) { ShippersQuery query = ShippersQuery.SerializeHelper.FromXml( serializedQuery, typeof(ShippersQuery), AllKnownTypes) as ShippersQuery; Shippers obj = new Shippers(); if (obj.Load(query)) { return obj; } return null; }
public jsResponse<ShippersCollection, Shippers> Shippers_Save(Shippers entity) { jsResponse<ShippersCollection, Shippers> response = new jsResponse<ShippersCollection, Shippers>(); try { entity.Save(); response.entity = entity; } catch (Exception ex) { response.exception = ex.Message; } return response; }
public jsResponse<ShippersCollection, Shippers> Shippers_LoadByPrimaryKey(System.Int32 shipperID) { jsResponse<ShippersCollection, Shippers> response = new jsResponse<ShippersCollection, Shippers>(); try { Shippers entity = new Shippers(); if (entity.LoadByPrimaryKey(shipperID)) { response.entity = entity; } } catch (Exception ex) { response.exception = ex.Message; } return response; }
public void DeleteShippers(BusinessObjects.Shippers obj) { BusinessObjects.Shippers.Delete(obj.ShipperID.Value); }
public void UpdateShippers(BusinessObjects.Shippers obj) { obj.AcceptChanges(); obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified); obj.Save(); }
public void InsertShippers(BusinessObjects.Shippers obj) { obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added; obj.Save(); }