internal static BL.DomainModel.Order AdaptOrder(EntityReference<Order> o) { if (o.Value == null) return null; return AdaptOrder(o.Value); }
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; }
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); }
internal static BL.DomainModel.User AdaptUser(EntityReference<User> u) { if (u == null || u.Value == null) return null; return AdaptUser(u.Value); }
internal static BL.DomainModel.Product AdaptProduct(EntityReference<Product> p) { if (p.Value == null) return null; return AdaptProduct(p.Value); }