Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework 存储过程的实体框架输出参数。它添加记录,但我需要返回新插入记录的id_Entity Framework - Fatal编程技术网

Entity framework 存储过程的实体框架输出参数。它添加记录,但我需要返回新插入记录的id

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

这是我的密码 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、,
null,null,null,null,null,null,null,null,null,null)

var userid=output.Value;只需评估为nul,