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.
CallingNewTests.cs
Go to the documentation of this file.
1using System;
2using Csla.Server;
3
5{
7 public class A : BusinessBase<A> { }
8
9 public class B : ObjectFactory
10 {
11 public void Foo()
12 {
13 var a = new A();
14 }
15 }
16
17 public class C
18 {
19 public void Foo()
20 {
21 // This should be an error
22 // because you can't create a new business object
23 // outside of an ObjectFactory.
24 var a = new A();
25 }
26 }
27}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
Base class to be used when creating a data portal factory object.
@ Serializable
Prevents updating or inserting until the transaction is complete.