C# 클래스 nHydrate.Generator.SqlSchemaToModel

파일 보기 프로젝트 열기: nHydrate/nHydrate

공개 메소드들

메소드 설명
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