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.
SerializableTypeTests.cs
Go to the documentation of this file.
1using System;
2
4{
5 // This should have an error because it's not serializable,
6 // even though the base type is.
7 public class SomeCriteria
8 : CriteriaBase<SomeCriteria>
9 { }
10
11 // This should have an error because it's not serializable,
12 // even though the base type is.
13 public class MyCommandBase
14 : CommandBase<MyCommandBase>
15 {
16 public MyCommandBase(int id) { }
17
18 public MyCommandBase() { }
19 }
20
21 // This should have an error because it's not serializable
23 : BusinessBase<ClassIsStereotypeAndIsNotSerializable>
24 { }
25
26 public class ClassIsNotStereotype { }
27
30 : BusinessBase<ClassIsStereotypeAndIsSerializable>
31 { }
32}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
This is the base class from which command objects will be derived.
Definition: CommandBase.cs:51
Base type from which Criteria classes can be derived in a business class.
Definition: CriteriaBase.cs:25
@ Serializable
Prevents updating or inserting until the transaction is complete.