Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Tools.dll Namespace: CloudNimble.EasyAF.Tools.Commands Inheritance: System.Object

Syntax

Summary

Command to generate an EDMX file from an EF Core DbContext in the Data project.

Remarks

This command locates the Data project, finds the compiled assembly, and generates an EDMX file using the EdmxConverter. The output file is placed in the Data project directory.

Examples

Constructors

.ctor

Initializes a new instance of the EdmxGenerateCommand class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

Context

Gets or sets the DbContext class to use.

Syntax

Property Value

Type: string

Environment

Gets or sets the environment to use (Development, Production, etc).

Syntax

Property Value

Type: string

Project

Gets or sets the project folder containing the DbContext.

Syntax

Property Value

Type: string

Root

Gets or sets the working directory for the code compiler. Defaults to current directory.

Syntax

Property Value

Type: string

StartupProject

Gets or sets the startup project folder.

Syntax

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

OnExecuteAsync

Executes the EDMX generation command.

Syntax

Returns

Type: System.Threading.Tasks.Task<int> 0 if successful, 1 if an error occurred.

Examples

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?