Ejemplo n.º 1
0
        public static IInsertDataSyntax IntoEntityTable <TEntity>(this IInsertExpressionRoot root, object entity)
            where TEntity : class, IEntity
        {
            var tableName = TableName.ForEntity <TEntity>();

            return(root.IntoTable(tableName).Row(entity));
        }
Ejemplo n.º 2
0
 public static void TestVenueRows(this IInsertExpressionRoot insert)
 {
     /* EXMAPLE
      * insert.IntoTable("Venues").WithIdentityInsert().Row(new
      * {
      *  Id = 1,
      *  Name = "Cool"
      * });*/
 }
Ejemplo n.º 3
0
 public static IInsertDataSyntax IntoAppTable(this IInsertExpressionRoot insertExpressionRoot, string tableName)
 {
     return(insertExpressionRoot.IntoTable(tableName).InSchema(SchemaExtensions.Name));
 }
Ejemplo n.º 4
0
        public static IInsertDataOrInSchemaSyntax IntoTable(this IInsertExpressionRoot insert, Tables table)
        {
            var tableName = Enum.GetName(typeof(Tables), table);

            return(insert.IntoTable(tableName));
        }
Ejemplo n.º 5
0
 public static IInsertDataOrInSchemaSyntax IntoTable <T>(this IInsertExpressionRoot root)
 {
     return(root.IntoTable(typeof(T).Name));
 }