Exemplo n.º 1
0
 /// <summary>
 /// Binds the surrogate values to the search template.
 /// </summary>
 /// <param name="emptyTemplate">The empty template.</param>
 public void BindToSearchTemplate(InventoryTemplate emptyTemplate)
 {
     if (this.ProductID != null)
     emptyTemplate.ProductID = this.ProductID.Value;
 }
Exemplo n.º 2
0
 /// <summary>
 /// SQL like query to find and return a list of objects based on a template.</summary>
 /// <remarks> A query template is used for creating SQL like queries, in a more OO fashion.</remarks>
 /// <param name="template">InventoryTemplate.</param>
 /// <returns> ObjectList&lt;Inventory&gt; </returns>
 public ObjectList<Inventory> Find(InventoryTemplate template)
 {
     ObjectList<Inventory> c = new ObjectList<Inventory>();
     foreach(Inventory eo in base.Find(template))
     c.Add(eo);
     return c;
 }