希望从Spring Adotemplate迁移到Linq [英] Looking to move from Spring Adotemplate to Linq
本文介绍了希望从Spring Adotemplate迁移到Linq的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望用Linq替换当前使用Spring的Adotemplate的数据访问层来访问存储过程。在使用设计器的时候我注意到当你删除一个存储过程时它会自动从存储过程中生成返回对象有没有办法让它链接到原始对象?
解决方案
如果在LINQ to SQL类设计器中打开存储过程的属性,您将看到一个名为return type的属性,可以将其更改为您在设计器中建模的实体类型之一。 BR>结果,[)amien结果
I am looking to replace a data access layer that is currently using Spring's Adotemplate with Linq to access stored procedures. While working with the designer I have noticed when you drop a stored procedure it generates the return objects from the store procedures automatically is there a way to make it link to the original object?
解决方案
If you open up the properties for the stored procedure in the LINQ to SQL classes designer you will see a property called return type that can be changed to one of the entity types you have modelled in the designer.
[)amien
这篇关于希望从Spring Adotemplate迁移到Linq的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文