Ejemplo n.º 1
0
        static public void Delete(System.Int32 shipperID, esSqlAccessType sqlAccessType)
        {
            var obj = new Shippers();

            obj.ShipperID = shipperID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
Ejemplo n.º 2
0
        static public void Delete(System.Int32 shipperID)
        {
            var obj = new Shippers();

            obj.ShipperID = shipperID;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save();
        }
Ejemplo n.º 3
0
 public ShippersProxyStub(Shippers obj, bool dirtyColumnsOnly)
 {
     theEntity             = this.entity = obj;
     this.dirtyColumnsOnly = dirtyColumnsOnly;
 }
Ejemplo n.º 4
0
 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;
		}
Ejemplo n.º 10
0
 public void DeleteShippers(BusinessObjects.Shippers obj)
 {
     BusinessObjects.Shippers.Delete(obj.ShipperID.Value);
 }
Ejemplo n.º 11
0
 public void UpdateShippers(BusinessObjects.Shippers obj)
 {
     obj.AcceptChanges();
     obj.MarkAllColumnsAsDirty(EntitySpaces.Interfaces.esDataRowState.Modified);
     obj.Save();
 }
Ejemplo n.º 12
0
 public void InsertShippers(BusinessObjects.Shippers obj)
 {
     obj.RowState = EntitySpaces.Interfaces.esDataRowState.Added;
     obj.Save();
 }