C# 클래스 SchemaZen.Library.Models.Database

파일 보기 프로젝트 열기: Zocdoc/schemazen 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Assemblies List
Connection string
DataTables List
Dir string
ForeignKeys List
Name string
Props List
Roles List
Routines List
Schemas List
Synonyms List
TableTypes List
Tables List
UserDefinedTypes List
Users List
ViewIndexes List

Private Properties

프로퍼티 타입 설명
FindTableBase Table
GetScripts List
LoadCLRAssemblies void
LoadCheckConstraints void
LoadColumnComputes void
LoadColumnDefaults void
LoadColumnIdentities void
LoadColumns void
LoadColumnsBase void
LoadConstraintsAndIndexes void
LoadForeignKeys void
LoadProps void
LoadRoles void
LoadRoutines void
LoadSchemas void
LoadSynonyms void
LoadTables void
LoadTablesBase void
LoadUserDefinedTypes void
LoadUserDefinedTypesBase void
LoadUsersAndLogins void
LoadXmlSchemas void
MakeFileName string
MakeFileName string
SetPropOnOff void
SetPropString void
WritePropsScript void
WriteSchemaScript void
WriteScriptDir void

공개 메소드들

메소드 설명
Compare ( Database db ) : DatabaseDiff
CreateFromDir ( bool overwrite, string databaseFilesPath = null, string>.Action log = null ) : void
Database ( IList filteredTypes = null ) : System
Database ( string name, IList filteredTypes = null ) : System
ExecCreate ( bool dropIfExists ) : void
ExportData ( string tableHint = null, string>.Action log = null ) : void
FindAssembly ( string name ) : SqlAssembly
FindConstraint ( string name ) : Constraint
FindForeignKey ( string name, string owner ) : ForeignKey
FindProp ( string name ) : DbProp
FindRoutine ( string name, string schema ) : Routine
FindSynonym ( string name, string schema ) : Synonym
FindTable ( string name, string owner, bool isTableType = false ) : Table
FindTablesRegEx ( string pattern ) : List
FindUser ( string name ) : SqlUser
FindViewIndex ( string name ) : Constraint
ImportData ( string>.Action log = null ) : void
Load ( ) : void
ScriptCreate ( ) : string
ScriptPropList ( IList props ) : string
ScriptToDir ( string tableHint = null, string>.Action log = null ) : void

비공개 메소드들

메소드 설명
FindTableBase ( IEnumerabletables, stringname, stringowner ) : Table
GetScripts ( ) : List
LoadCLRAssemblies ( SqlCommand cm ) : void
LoadCheckConstraints ( SqlCommand cm ) : void
LoadColumnComputes ( SqlCommand cm ) : void
LoadColumnDefaults ( SqlCommand cm ) : void
LoadColumnIdentities ( SqlCommand cm ) : void
LoadColumns ( SqlCommand cm ) : void
LoadColumnsBase ( IDataReader dr, Listtables ) : void
LoadConstraintsAndIndexes ( SqlCommand cm ) : void
LoadForeignKeys ( SqlCommand cm ) : void
LoadProps ( SqlCommand cm ) : void
LoadRoles ( SqlCommand cm ) : void
LoadRoutines ( SqlCommand cm ) : void
LoadSchemas ( SqlCommand cm ) : void
LoadSynonyms ( SqlCommand cm ) : void
LoadTables ( SqlCommand cm ) : void
LoadTablesBase ( System.Data.SqlClient.SqlDataReader dr, bool areTableTypes, Listtables ) : void
LoadUserDefinedTypes ( SqlCommand cm ) : void
LoadUserDefinedTypesBase ( System.Data.SqlClient.SqlDataReader dr, List userDefinedTypes ) : void
LoadUsersAndLogins ( SqlCommand cm ) : void
LoadXmlSchemas ( SqlCommand cm ) : void
MakeFileName ( object o ) : string
MakeFileName ( string schema, string name ) : string
SetPropOnOff ( string propName, object dbVal ) : void
SetPropString ( string propName, object dbVal ) : void
WritePropsScript ( string>.Action log ) : void
WriteSchemaScript ( string>.Action log ) : void
WriteScriptDir ( string name, ICollection objects, string>.Action log ) : void

메소드 상세

Compare() 공개 메소드

public Compare ( Database db ) : DatabaseDiff
db Database
리턴 DatabaseDiff

CreateFromDir() 공개 메소드

public CreateFromDir ( bool overwrite, string databaseFilesPath = null, string>.Action log = null ) : void
overwrite bool
databaseFilesPath string
log string>.Action
리턴 void

Database() 공개 메소드

public Database ( IList filteredTypes = null ) : System
filteredTypes IList
리턴 System

Database() 공개 메소드

public Database ( string name, IList filteredTypes = null ) : System
name string
filteredTypes IList
리턴 System

ExecCreate() 공개 메소드

public ExecCreate ( bool dropIfExists ) : void
dropIfExists bool
리턴 void

ExportData() 공개 메소드

public ExportData ( string tableHint = null, string>.Action log = null ) : void
tableHint string
log string>.Action
리턴 void

FindAssembly() 공개 메소드

public FindAssembly ( string name ) : SqlAssembly
name string
리턴 SqlAssembly

FindConstraint() 공개 메소드

public FindConstraint ( string name ) : Constraint
name string
리턴 Constraint

FindForeignKey() 공개 메소드

public FindForeignKey ( string name, string owner ) : ForeignKey
name string
owner string
리턴 ForeignKey

FindProp() 공개 메소드

public FindProp ( string name ) : DbProp
name string
리턴 DbProp

FindRoutine() 공개 메소드

public FindRoutine ( string name, string schema ) : Routine
name string
schema string
리턴 Routine

FindSynonym() 공개 메소드

public FindSynonym ( string name, string schema ) : Synonym
name string
schema string
리턴 Synonym

FindTable() 공개 메소드

public FindTable ( string name, string owner, bool isTableType = false ) : Table
name string
owner string
isTableType bool
리턴 Table

FindTablesRegEx() 공개 메소드

public FindTablesRegEx ( string pattern ) : List
pattern string
리턴 List

FindUser() 공개 메소드

public FindUser ( string name ) : SqlUser
name string
리턴 SqlUser

FindViewIndex() 공개 메소드

public FindViewIndex ( string name ) : Constraint
name string
리턴 Constraint

ImportData() 공개 메소드

public ImportData ( string>.Action log = null ) : void
log string>.Action
리턴 void

Load() 공개 메소드

public Load ( ) : void
리턴 void

ScriptCreate() 공개 메소드

public ScriptCreate ( ) : string
리턴 string

ScriptPropList() 공개 정적인 메소드

public static ScriptPropList ( IList props ) : string
props IList
리턴 string

ScriptToDir() 공개 메소드

public ScriptToDir ( string tableHint = null, string>.Action log = null ) : void
tableHint string
log string>.Action
리턴 void

프로퍼티 상세

Assemblies 공개적으로 프로퍼티

public List Assemblies
리턴 List

Connection 공개적으로 프로퍼티

public string Connection
리턴 string

DataTables 공개적으로 프로퍼티

public ListDataTables
리턴 List

Dir 공개적으로 프로퍼티

public string Dir
리턴 string

ForeignKeys 공개적으로 프로퍼티

public List ForeignKeys
리턴 List

Name 공개적으로 프로퍼티

public string Name
리턴 string

Props 공개적으로 프로퍼티

public List Props
리턴 List

Roles 공개적으로 프로퍼티

public List Roles
리턴 List

Routines 공개적으로 프로퍼티

public List Routines
리턴 List

Schemas 공개적으로 프로퍼티

public List Schemas
리턴 List

Synonyms 공개적으로 프로퍼티

public List Synonyms
리턴 List

TableTypes 공개적으로 프로퍼티

public ListTableTypes
리턴 List

Tables 공개적으로 프로퍼티

public ListTables
리턴 List

UserDefinedTypes 공개적으로 프로퍼티

public List UserDefinedTypes
리턴 List

Users 공개적으로 프로퍼티

public List Users
리턴 List

ViewIndexes 공개적으로 프로퍼티

public List ViewIndexes
리턴 List