Definition
Assembly: CloudNimble.EasyAF.Business.EF6.dll Namespace: CloudNimble.EasyAF.Business Inheritance: System.ObjectSyntax
Summary
Represents the base class for all EasyAF business logic managers. Provides access to a database context and message publishing capabilities for implementing business operations and workflows.Remarks
This base class is designed to encapsulate business logic that requires database access and messaging capabilities. It’s particularly useful for implementing complex business processes such as user registration, order processing, or any workflow that needs to coordinate database operations with message publishing for event-driven architectures.Type Parameters
TContext- The type of the database context (DbContext) used for data operations.
Examples
Constructors
.ctor
Initializes a new instance of theManagerBase1` class.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
dataContext | TContext | The database context instance for data operations. Should be injected by the DI container. |
messagePublisher | CloudNimble.SimpleMessageBus.Publish.IMessagePublisher | The message publisher instance for publishing events. Should be injected by the DI container. |
.ctor Inherited
Inherited from
objectSyntax
Properties
DataContext
Gets the database context instance used for data operations. This context is injected through the constructor and provides access to the database.Syntax
Property Value
Type:TContext
MessagePublisher
Gets the message publisher instance used for publishing events and messages to the message bus. This publisher is injected through the constructor and enables event-driven architecture patterns.Syntax
Property Value
Type:CloudNimble.SimpleMessageBus.Publish.IMessagePublisher
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?