C# Класс nHydrate.Generator.SqlSchemaToModel

Показать файл Открыть проект

Открытые методы

Метод Описание
GetCompanyName ( string connectionString ) : string
GetDatabaseCollation ( string connectionString ) : string
GetDatabaseName ( string connectionString ) : string
GetProjectFromSqlSchema ( nHydrateGeneratorProject project, string connectionString, bool refreshModel, bool assumeInheritance ) : bool

Load a database schema

GetProjectName ( string connectionString ) : string
GetSQLVersion ( string connectionString ) : SQLServerTypeConstants
GetTableCount ( string connectionString ) : int
GetTableDefinitionFromDatabase ( string connectionString, string tableName, ModelRoot root ) : IEnumerable
GetTableListFromDatabase ( string connectionString ) : IEnumerable
ImportModel ( ModelRoot currentGraph, ModelRoot newGraph, ImportModelSettings settings, List selectedTables, List selectedViews ) : ImportReturnConstants

Show a windows to refresh teh model from a database

IsSupportedSQLVersion ( string connectionString ) : bool
IsValidConnectionString ( string connectionString ) : bool
LoadRelations ( nHydrateGeneratorProject project, bool assumeInheritance, string connectionString ) : void
SetupNewProject ( nHydrateGeneratorProject project, string connectionString ) : void

Load a database schema

Приватные методы

Метод Описание
CanUseExtendedProperty ( string connectionString ) : bool
GetSqlColumnInfoAuxForTable ( ) : string
GetSqlColumnsForTable ( ) : string
GetSqlColumnsForTable ( string tableName ) : string
GetSqlColumsDescription ( string tableName ) : string
GetSqlDatabaseTables ( ) : string
GetSqlForRelationships ( ) : string
GetSqlForStoredProcedures ( string spPrefix ) : string
GetSqlForStoredProceduresBody ( string spName, string connectionString ) : string
GetSqlForStoredProceduresParameters ( string spPrefix ) : string
GetSqlForViews ( ) : string
GetSqlForViewsColumns ( ) : string
GetSqlIndexesForTable ( ) : string
LoadStoredProcedures ( nHydrateGeneratorProject project, string connectionString ) : void
LoadViews ( nHydrateGeneratorProject project, string connectionString ) : void
SetupDefault ( Column field, string defaultvalue ) : void
UpdateRelations ( nHydrate newDatabase, nHydrate oldDatabase ) : void
UpdateTables ( nHydrate newDatabase, nHydrate oldDatabase, List selectedTables, ImportModelSettings settings ) : void
UpdateViews ( nHydrate newDatabase, nHydrate oldDatabase, List selectedViews, ImportModelSettings settings ) : void

Описание методов

GetCompanyName() публичный статический Метод

public static GetCompanyName ( string connectionString ) : string
connectionString string
Результат string

GetDatabaseCollation() публичный статический Метод

public static GetDatabaseCollation ( string connectionString ) : string
connectionString string
Результат string

GetDatabaseName() публичный статический Метод

public static GetDatabaseName ( string connectionString ) : string
connectionString string
Результат string

GetProjectFromSqlSchema() публичный статический Метод

Load a database schema
public static GetProjectFromSqlSchema ( nHydrateGeneratorProject project, string connectionString, bool refreshModel, bool assumeInheritance ) : bool
project nHydrateGeneratorProject The project object to load from database
connectionString string
refreshModel bool Determines whether to load all model controllers and other UI components
assumeInheritance bool
Результат bool

GetProjectName() публичный статический Метод

public static GetProjectName ( string connectionString ) : string
connectionString string
Результат string

GetSQLVersion() публичный статический Метод

public static GetSQLVersion ( string connectionString ) : SQLServerTypeConstants
connectionString string
Результат SQLServerTypeConstants

GetTableCount() публичный статический Метод

public static GetTableCount ( string connectionString ) : int
connectionString string
Результат int

GetTableDefinitionFromDatabase() публичный статический Метод

public static GetTableDefinitionFromDatabase ( string connectionString, string tableName, ModelRoot root ) : IEnumerable
connectionString string
tableName string
root nHydrate.Generator.Models.ModelRoot
Результат IEnumerable

GetTableListFromDatabase() публичный статический Метод

public static GetTableListFromDatabase ( string connectionString ) : IEnumerable
connectionString string
Результат IEnumerable

ImportModel() публичный статический Метод

Show a windows to refresh teh model from a database
public static ImportModel ( ModelRoot currentGraph, ModelRoot newGraph, ImportModelSettings settings, List selectedTables, List selectedViews ) : ImportReturnConstants
currentGraph nHydrate.Generator.Models.ModelRoot
newGraph nHydrate.Generator.Models.ModelRoot
settings ImportModelSettings
selectedTables List
selectedViews List
Результат ImportReturnConstants

IsSupportedSQLVersion() публичный статический Метод

public static IsSupportedSQLVersion ( string connectionString ) : bool
connectionString string
Результат bool

IsValidConnectionString() публичный статический Метод

public static IsValidConnectionString ( string connectionString ) : bool
connectionString string
Результат bool

LoadRelations() публичный статический Метод

public static LoadRelations ( nHydrateGeneratorProject project, bool assumeInheritance, string connectionString ) : void
project nHydrateGeneratorProject
assumeInheritance bool
connectionString string
Результат void

SetupNewProject() публичный статический Метод

Load a database schema
public static SetupNewProject ( nHydrateGeneratorProject project, string connectionString ) : void
project nHydrateGeneratorProject The project object to load from database
connectionString string
Результат void