예제 #1
0
        internal static BL.DomainModel.Order AdaptOrder(EntityReference<Order> o)
        {
            if (o.Value == null)
                return null;

            return AdaptOrder(o.Value);
        }
예제 #2
0
        public static Throughput GetThroughputFromReference(EntityReference reference)
        {
            EntityKeyMember[] keys = reference.EntityKey.EntityKeyValues;
            int id = 0;

            if (keys[0].Key.ToLower() == "id")
                id = (int)keys[0].Value;

            return DCSDashboardDemoHelper.GetThroughPut(id);
        }
        internal void BeginForeignKeyUpdate(EntityReference relationship)
        {
            Debug.Assert(!this.IsForeignKeyUpdate);

            this.RelationshipBeingUpdated = relationship;
            this.IsForeignKeyUpdate = true;
        }
        public static int GetThroughputIdFromReference(EntityReference reference)
        {
            if (reference == null)
                return 0;

            EntityKeyMember[] keys = reference.EntityKey.EntityKeyValues;
            int id = 0;

            if (keys[0].Key.ToLower() == "id")
                id = (int)keys[0].Value;

            return id;
        }
예제 #5
0
 internal static BL.DomainModel.Customer AdaptCustomer(EntityReference<Customer> c, BL.DomainModel.User user)
 {
     if (c == null || c.Value == null)
         return null;
     return AdaptCustomer(c.Value, user);
 }
예제 #6
0
 internal static BL.DomainModel.User AdaptUser(EntityReference<User> u)
 {
     if (u == null || u.Value == null)
         return null;
     return AdaptUser(u.Value);
 }
예제 #7
0
 internal static BL.DomainModel.Product AdaptProduct(EntityReference<Product> p)
 {
     if (p.Value == null)
         return null;
     return AdaptProduct(p.Value);
 }