Exemplo n.º 1
0
 /// <summary>
 /// Inserts a single domain object into the catalog
 /// </summary>
 /// <param name="obj">
 /// Domain object to insert
 /// </param>
 /// <param name="replaceKey">
 /// Specifies if the Key value should be overwritten.
 /// </param>
 public void Insert(TDomainClass obj, bool replaceKey = true)
 {
     _collection.Insert(obj, replaceKey);
     InvokeObjectCreated();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Inserts a single domain object into the catalog
 /// </summary>
 /// <param name="obj">
 /// Domain object to insert
 /// </param>
 public void Insert(TDomainClass obj)
 {
     _collection.Insert(obj);
     Modified = true;
 }