public static SqlParameter BindDishTable(string parameterName, IEnumerable <DishEntity> dishesToUpdate) { dishesToUpdate = dishesToUpdate ?? Enumerable.Empty <DishEntity>(); return(TableBinder.BindTable(parameterName, "typ_Dishes_v1", BindDishRows(dishesToUpdate))); }
public static SqlParameter BindUserTable(string parameterName, IEnumerable <UserEntity> usersToUpdate) { usersToUpdate = usersToUpdate ?? Enumerable.Empty <UserEntity>(); return(TableBinder.BindTable(parameterName, "typ_Users_v1", BindUserRows(usersToUpdate))); }
public static SqlParameter BindOrderTable(string parameterName, IEnumerable <OrderEntity> ordersToUpdate) { ordersToUpdate = ordersToUpdate ?? Enumerable.Empty <OrderEntity>(); return(TableBinder.BindTable(parameterName, "typ_Orders_v1", BindOrderRows(ordersToUpdate))); }
public static SqlParameter BindProviderTable(string parameterName, IEnumerable <ProviderEntity> providersToUpdate) { providersToUpdate = providersToUpdate ?? Enumerable.Empty <ProviderEntity>(); return(TableBinder.BindTable(parameterName, "typ_Providers_v1", BindProviderRows(providersToUpdate))); }