首页 > TAG信息列表 > micro-orm

c#-精简程序“过程或函数sp_XXXX指定的参数过多.”

我正在使用Dapper的DynamicParamters对象和模板参数来与我的实体生成参数.调用存储过程后,出现以下错误“过程或函数sp_MemberSave指定了太多参数”.我在某些实体上确实具有用于业务逻辑等的额外属性.是否有办法确保dapper仅传递作为存储过程的实际参数的参数?似乎Dapper会先读取存

c# – 如何使用dapper将DbGeography插入SQL Server

我使用System.Data.Entity.Spatial创建了模型; public class Store { public int Id { get; private set; } public string Name { get; set; } public string Address { get; set; } public DbGeography Location { get; set; } } 插入数据库 using (SqlConnec

c# – PetaPoco – 如何关闭自动增量?

我在尝试插入时遇到了这个错误: Cannot insert the value NULL into column ‘Id’ 事实证明,PetaPoco默认假设Id列是自动递增的,所以即使你提供了一个值,它也会尝试插入null.我在这里找到了一个问题的错误票:https://dnntracker.atlassian.net/browse/DNN-23217. 我正在使用PetaP