Search code examples
c#wcflinq-to-sqlsqlmetal

WCF attributes and linq to sql


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]

?


Solution

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