Skip to main content

Definition

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

Syntax

CloudNimble.EasyAF.Tools.Commands.DatabaseInitCommand

Summary

Command for initializing database scaffolding configuration.

Constructors

.ctor

Initializes a new instance of the DatabaseInitCommand class.

Syntax

public DatabaseInitCommand(CloudNimble.EasyAF.EFCoreToEdmx.EdmxConfigManager configManager)

Parameters

NameTypeDescription
configManagerCloudNimble.EasyAF.EFCoreToEdmx.EdmxConfigManagerThe configuration manager service.

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

ConnectionString

Gets or sets the connection string source.

Syntax

public string ConnectionString { get; set; }

Property Value

Type: string

ContextName

Gets or sets the DbContext class name.

Syntax

public string ContextName { get; set; }

Property Value

Type: string

DbContextNamespace

Gets or sets the namespace for the generated DbContext.

Syntax

public string DbContextNamespace { get; set; }

Property Value

Type: string

ExcludeTables

Gets or sets the tables to exclude.

Syntax

public string[] ExcludeTables { get; set; }

Property Value

Type: string[]

NoDataAnnotations

Gets or sets a value indicating whether to disable data annotations.

Syntax

public bool NoDataAnnotations { get; set; }

Property Value

Type: bool

NoPluralize

Gets or sets a value indicating whether to disable pluralization.

Syntax

public bool NoPluralize { get; set; }

Property Value

Type: bool

ObjectsNamespace

Gets or sets the namespace for the generated entity objects.

Syntax

public string ObjectsNamespace { get; set; }

Property Value

Type: string

Provider

Gets or sets the database provider.

Syntax

public string Provider { get; set; }

Property Value

Type: string

SolutionFolder

Gets or sets the working directory for the solution. Defaults to current directory.

Syntax

public string SolutionFolder { get; set; }

Property Value

Type: string

Tables

Gets or sets the specific tables to include.

Syntax

public string[] Tables { get; set; }

Property Value

Type: string[]

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

OnExecuteAsync

Executes the init command.

Syntax

public System.Threading.Tasks.Task<int> OnExecuteAsync()

Returns

Type: System.Threading.Tasks.Task<int> Exit code.

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?