Mercurial > pub > bltoolkit
view Source/Templates/WCFAttributes.ttinclude @ 9:1e85f66cf767 default tip
update bltoolkit
author | nickolay |
---|---|
date | Thu, 05 Apr 2018 20:53:26 +0300 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
<# { var wcfPrevBeforeGenerateModel = BeforeGenerateModel; BeforeGenerateModel = tt => { wcfPrevBeforeGenerateModel(tt); Usings.Add("System.Runtime.Serialization"); foreach (var t in Tables.Values) t.Attributes.AddRange(new[] { "Serializable", "DataContract" + (DataContractNamespace == null ? "" : "(Namespace=\"" + DataContractNamespace + "\")") }); foreach (var t in Tables.Values) foreach (var c in t.Columns.Values) c.Attributes.Add("DataMember"); }; } #><#+ string DataContractNamespace = null; #>