| 设为首页 加入收藏 |
当前位置: |
| TOP | |||||||||||||||||
|
BLToolkitLinq-provider(十)
SQL:
UpdateThe following three methods allow you to update one or more entries in the table. Upgrading from a predicate:
Upgrading from subquery:
Update read-only properties:
For all of these queries generated the following SQL:
Another update operation, which involved one of the fields of the table:
SQL:
DeleteAnd in the end the delete operation. Deleting a predicate:
Remove with a subquery:
SQL:
SQL FunctionAlong with the standard functions of .NET Framework, BLToolkit allows you to use SQL functions that are available databases. The following two examples are similar to the examples that we have considered above the standard features for .NET Framework, but instead they use features SQL. Using the string length:
SQL:
Function rounding:
SQL:
Note, this time caused by rounding function directly as it is present in SQL. Expanding BLToolkitSQL FunctionBLToolkit allows us not only to use SQL functions, but also easily add their own. Realization of us considered the function of calculating the length of the line is as follows:
Thus, SQL function - this is the usual method marked attribute SqlFunction. Attribute SqlFunction includes the following properties: Name - name of the SQL function. If the name is not specified, it is used as a method name. SqlProvider - name of the SQL provider. If no attribute among the attributes to the desired provider is taken without sp |
| 首页 上一页 7 8 9 10 11 12 13 下一页 尾页 10/13/13 | |
| 【大 中 小】【打印】 【繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部】 | |
|
分享到:
|
|
| 上一篇:Mysql Master Slave Config | 下一篇:BI-SSAS简介篇 |
| 评论 |
|
|