Beispiel #1
0
 private void DetachFacts(Fact entity)
 {
     entity.Region = null;
 }
Beispiel #2
0
 private bool FilterFacts(Fact entity)
 {
     return (entity.RegionID == this.RegionID);
 }
Beispiel #3
0
 private bool FilterFacts(Fact entity)
 {
     return (entity.ProductID == this.ProductID);
 }
Beispiel #4
0
 private void AttachFacts(Fact entity)
 {
     entity.Region = this;
 }
Beispiel #5
0
 private void AttachFacts(Fact entity)
 {
     entity.Product = this;
 }
Beispiel #6
0
 private void DetachFacts(Fact entity)
 {
     entity.Product = null;
 }
Beispiel #7
0
 private bool FilterFacts(Fact entity)
 {
     return (entity.OrderID == this.OrderID);
 }
Beispiel #8
0
 private void DetachFacts(Fact entity)
 {
     entity.Order = null;
 }
Beispiel #9
0
 private void AttachFacts(Fact entity)
 {
     entity.Order = this;
 }
 /// <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;
 }
 /// <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);
 }