System.Runtime.Serialization support

Jul 4, 2011 at 9:38 PM

Are there any plans for this? (if it doesn't do so already)

For example I'd prefer not to pollute my model classes with [SterlingIgnore] attribute which has a dependency on the sterling libraries.
I'd much rather make use of the existing [IgnoreDataMember] in the System.Runtime.Serialization library.

ie: It'd be nice if I could tell Sterling to honor the System.Runtime.Serialization constructs when saving to the database,
just as the DataContractSerializer would do.

Jul 5, 2011 at 11:47 AM

The latest drop of Sterling allows you to specify what attribute to use - it decouples the actual "ignore attribute" so you can set it to the [IgnoreDataMember] if you like. The documentation is being refreshed but you can find an example in the tests and work from there.

Jul 5, 2011 at 6:09 PM

Excellent - thanks!

Jul 5, 2011 at 6:12 PM

Excellent - thanks!