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]
?
i think this post in msdn blogEnabling .dbml file for WCF can be usefull