WCF attributes and linq to sql

心已入冬 提交于 2019-12-11 00:11:00

问题


How can I generate dbml file (with Sqlmetal.exe) with appropiate WCF attributes (DataMember, DataContract etc)?

for example: I have Client table with columns: ClientID, Name, IP, City, Phone

I'd like make Client class generated in dbml as [DataContract] and Name and IP as [DataMember]

?


回答1:


i think this post in msdn blogEnabling .dbml file for WCF can be usefull



来源:https://stackoverflow.com/questions/7970206/wcf-attributes-and-linq-to-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!