Skip to main content

Definition

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

Syntax

CloudNimble.EasyAF.Tools.Commands.EdmxRootCommand

Summary

Root command for EDMX file utilities.

Remarks

This command serves as the entry point for all EDMX-related subcommands, such as generate, swap, and watch. It provides shared utility methods for locating project folders and EDMX files.

Examples

dotnet easyaf edmx --help

Constructors

.ctor

Syntax

public EdmxRootCommand()

.ctor Inherited

Inherited from object

Syntax

public Object()

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

FindDataFolder

Attempts to find the .Data folder in the given root directory.

Syntax

public static string FindDataFolder(string rootFolder)

Parameters

NameTypeDescription
rootFolderstringThe root directory to search.

Returns

Type: string The path to the .Data folder, or null if not found.

Examples

var dataFolder = EdmxRootCommand.FindDataFolder("C:\\MySolution");

FindEdmxFile

Attempts to find the first EDMX file in the given folder.

Syntax

public static string FindEdmxFile(string folder)

Parameters

NameTypeDescription
folderstringThe folder to search for EDMX files.

Returns

Type: string The path to the first EDMX file found, or null if none found.

Examples

var edmxFile = EdmxRootCommand.FindEdmxFile("C:\\MySolution\\MyProject.Data");

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

OnExecute

Shows help for the edmx command.

Syntax

public int OnExecute(McMaster.Extensions.CommandLineUtils.CommandLineApplication app)

Parameters

NameTypeDescription
appMcMaster.Extensions.CommandLineUtils.CommandLineApplicationThe command line application.

Returns

Type: int Exit code 1.

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?