日期:2014-05-17 浏览次数:20881 次
public virtual int sp_get_uni_id(string nAME, Nullable<int> sTEP, ObjectParameter vALUE)
{
var nAMEParameter = nAME != null ?
new ObjectParameter("NAME", nAME) :
new ObjectParameter("NAME", typeof(string));
var sTEPParameter = sTEP.HasValue ?
new ObjectParameter("STEP", sTEP) :
new ObjectParameter("STEP", typeof(int));
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_get_uni_id", nAMEParameter, sTEPParameter, vALUE);
}
ObjectParameter myParameter = new ObjectParameter("MyParameter ", typeof(string));