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.
SerializableArgumentTests.cs
Go to the documentation of this file.
1
2using System;
3
5{
8 : BusinessBase<SerializableArgumentTests>
9 {
10 [Fetch]
11 private void Fetch(int x) { }
12
13 [Fetch]
14 private void Fetch(SerializedObject x) { }
15
16 [Fetch]
17 private void Fetch(Guid id) { }
18
19 // This should fail because it's not serializable.
20 [Fetch]
21 private void Fetch(NonSerializedObject x) { }
22
23 [Fetch]
24 private void FetchWithInject([Inject] NonSerializedObject x) { }
25
26 [FetchChild]
27 private void FetchChild(int x) { }
28
29 [FetchChild]
30 private void FetchChild(SerializedObject x) { }
31
32 [FetchChild]
33 private void FetchChild(NonSerializedObject x) { }
34 }
35
36 public class NonSerializedObject { }
37
39 public class SerializedObject { }
40}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
@ Serializable
Prevents updating or inserting until the transaction is complete.