问题
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