Skip to main content

Definition

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

Syntax

CloudNimble.EasyAF.Tools.Commands.EdmxSwapCommand

Summary

Command to switch the Provider in the EDMX file between System.Data.SqlClient and Microsoft.Data.SqlClient.

Remarks

This command locates the EDMX file in the specified directory (or the .Data folder) and swaps the provider string.

Examples

dotnet easyaf edmx swap --path "C:\MySolution"

Constructors

.ctor

Syntax

public EdmxSwapCommand()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Root

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

Syntax

public string Root { 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 EDMX provider swap command.

Syntax

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

Returns

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

Examples

dotnet easyaf edmx swap --path "C:\MySolution"

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?