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.
1
using
System;
2
using
Csla
.
Server
;
3
4
namespace
Csla.Analyzers.IntegrationTests
5
{
6
[
Serializable
]
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
}
Csla.Analyzers.IntegrationTests.A
Definition:
CallingNewTests.cs:7
Csla.Analyzers.IntegrationTests.B
Definition:
CallingNewTests.cs:10
Csla.Analyzers.IntegrationTests.B.Foo
void Foo()
Definition:
CallingNewTests.cs:11
Csla.Analyzers.IntegrationTests.C
Definition:
CallingNewTests.cs:18
Csla.Analyzers.IntegrationTests.C.Foo
void Foo()
Definition:
CallingNewTests.cs:19
Csla.BusinessBase
This is the base class from which most business objects will be derived.
Definition:
BusinessBase.cs:38
Csla.Server.ObjectFactory
Base class to be used when creating a data portal factory object.
Definition:
ObjectFactory.cs:20
Csla.Analyzers.IntegrationTests
Definition:
BusinessRuleCases.cs:5
Csla.Server
Definition:
HttpPortal.cs:22
Csla
Definition:
BusinessRuleCases.cs:5
Csla.TransactionIsolationLevel.Serializable
@ Serializable
Prevents updating or inserting until the transaction is complete.
Generated by
1.9.2