Ejemplo n.º 1
0
 /// <summary>
 /// Inserts an object into the database
 /// </summary>
 /// <param name="obj">an valid table type object that should be stored in db</param>
 public void Insert(object obj)
 {
     if (IsTypeATable(obj.GetType()))
     {
         _ct.Insert(obj);
     }
     else
     {
         throw new InvalidOperationException(
                   $"{obj.GetType()} is not a valid Table Type, please set correct Attributes");
     }
 }