我在使用Razor Engine实现的View中有一个TextArea()控件.
@Html.TextArea("EventNature",new { style = "width: 200px; height: 100px;" })
Run Code Online (Sandbox Code Playgroud)
如何为此控件设置Maxlength属性?
是否在RazorEngine中有内置的属性,还是我必须使用脚本?
我有一个具有可空字段的临时表(在SQL SERVER 2008中).
我想将登台表中的记录插入或更新到主表.
在此期间,我想要进行比较
Update main
set main.field1 = (
if(staging.field1 isnull)
then ----
else if(staging.field2 isnull)
then ----
else
then
)
Run Code Online (Sandbox Code Playgroud)
如何在插入和更新语句中嵌入上述条件?