Пример #1
0
 private void DetachFacts(Fact entity)
 {
     entity.Region = null;
 }
Пример #2
0
 private bool FilterFacts(Fact entity)
 {
     return (entity.RegionID == this.RegionID);
 }
Пример #3
0
 private bool FilterFacts(Fact entity)
 {
     return (entity.ProductID == this.ProductID);
 }
Пример #4
0
 private void AttachFacts(Fact entity)
 {
     entity.Region = this;
 }
Пример #5
0
 private void AttachFacts(Fact entity)
 {
     entity.Product = this;
 }
Пример #6
0
 private void DetachFacts(Fact entity)
 {
     entity.Product = null;
 }
Пример #7
0
 private bool FilterFacts(Fact entity)
 {
     return (entity.OrderID == this.OrderID);
 }
Пример #8
0
 private void DetachFacts(Fact entity)
 {
     entity.Order = null;
 }
Пример #9
0
 private void AttachFacts(Fact entity)
 {
     entity.Order = this;
 }
Пример #10
0
 /// <summary>
 /// Create a new Fact object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="regionID">Initial value of the RegionID property.</param>
 public static Fact CreateFact(global::System.Int32 id, global::System.Int32 productID, global::System.Int32 orderID, global::System.Int32 regionID)
 {
     Fact fact = new Fact();
     fact.ID = id;
     fact.ProductID = productID;
     fact.OrderID = orderID;
     fact.RegionID = regionID;
     return fact;
 }
Пример #11
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Facts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFacts(Fact fact)
 {
     base.AddObject("Facts", fact);
 }