Hi,
How do I get Entity Developer to include the attribute [Serializable] to all the generated classes? I can only make it generate the [DataContract()]. I hope you can provide a solution for this.
I'm using Entity Developer version 2.50.50
Thanks in advance,
Lasse
How to add Serializable attribute to generated classes
-
- Posts: 13
- Joined: Mon 23 Nov 2009 08:59
If you wish to add custom attributes like Serializable to the code generated for a LINQ to SQL model,
you should edit the code generation template.
Add the line after the line.
you should edit the code generation template.
Add the
Code: Select all
[Serializable]
Code: Select all
[Table(Name = @"")]