CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
OverrideSerializationRoot.cs
Go to the documentation of this file.
1using System;
2using System.ComponentModel;
3
5{
8 {
9 protected override bool ShouldHandlerSerialize(PropertyChangedEventHandler value)
10 {
11 if (value.Method.DeclaringType != null && value.Method.DeclaringType.Name == @"Action`2")
12 {
13 return false;
14 }
15 return base.ShouldHandlerSerialize(value);
16 }
17 protected override bool ShouldHandlerSerialize(PropertyChangingEventHandler value)
18 {
19 if (value.Method.DeclaringType != null && value.Method.DeclaringType.Name == @"Action`2")
20 {
21 return false;
22 }
23 return base.ShouldHandlerSerialize(value);
24 }
25
27 {
28 return dataPortal.Create();
29 }
30
31 [Create]
32 private void Create()
33 {
34 }
35 }
36}
static OverrideSerializationRoot NewOverrideSerializationRoot(IDataPortal< OverrideSerializationRoot > dataPortal)
override bool ShouldHandlerSerialize(PropertyChangingEventHandler value)
override bool ShouldHandlerSerialize(PropertyChangedEventHandler value)
Interface defining the members of the data portal type.
Definition: IDataPortalT.cs:17
object Create(params object[] criteria)
Called by a factory method in a business class to create a new object, which is loaded with default v...
@ Serializable
Prevents updating or inserting until the transaction is complete.