You can use the SqlFacet
attribute. If you want the NVARCHAR(MAX)
type as a parameter, then you should do this:
[SqlProcedure]
public static void storedProcedure1([SqlFacet(MaxSize=-1)] String param){ .. }
If you need it as a return value in a user defined function:
[return:SqlFacet(MaxSize=-1)]
[SqlFunction]
public static String userFunction1(){ ... }
The MaxSize=-1
indicates that the size of the NVARCHAR
will be MAX
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…