示例#1
0
        public static SqlParameter BindDishTable(string parameterName, IEnumerable <DishEntity> dishesToUpdate)
        {
            dishesToUpdate = dishesToUpdate ?? Enumerable.Empty <DishEntity>();

            return(TableBinder.BindTable(parameterName, "typ_Dishes_v1", BindDishRows(dishesToUpdate)));
        }
示例#2
0
        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)));
        }
示例#4
0
        public static SqlParameter BindProviderTable(string parameterName, IEnumerable <ProviderEntity> providersToUpdate)
        {
            providersToUpdate = providersToUpdate ?? Enumerable.Empty <ProviderEntity>();

            return(TableBinder.BindTable(parameterName, "typ_Providers_v1", BindProviderRows(providersToUpdate)));
        }