Entity framework 存储过程的实体框架输出参数。它添加记录,但我需要返回新插入记录的id
这是我的密码 System.Data.Entity.Core.Objects.ObjectParameter输出=新的System.Data.Entity.Core.Objects.ObjectParameter(“userID”,typeof(int)); db.Proc\u UserAccounts\u AddNew(输出、对象名称、对象密码、对象签名更新、对象不活动、对象地址、对象电话、, obj.Email、obj.VerificationCode、obj.Cell、obj.Fax、countryid、null、10、obj.ServiceDescription、“、”“、”“、”“、”“、”“1”、null、,Entity framework 存储过程的实体框架输出参数。它添加记录,但我需要返回新插入记录的id,entity-framework,Entity Framework,这是我的密码 System.Data.Entity.Core.Objects.ObjectParameter输出=新的System.Data.Entity.Core.Objects.ObjectParameter(“userID”,typeof(int)); db.Proc\u UserAccounts\u AddNew(输出、对象名称、对象密码、对象签名更新、对象不活动、对象地址、对象电话、, obj.Email、obj.VerificationCode、obj.Cell、obj.Fax、co
null,null,null,null,null,null,null,null,null,null) var userid=output.Value;只需评估为nul,