C# Class Noear.Weed.DbContext

Show file Open project: noear/Weed3 Class Usage Examples

Public Methods

Method Description
DbContext ( String schemaName, string name ) : System
DbContext ( String schemaName, string connectionString, String fieldFormat, System.Data.Common.DbProviderFactory provider ) : System
DbContext ( String schemaName, string name, string fieldFormat ) : System
call ( String process ) : DbStoredProcedure
field ( String key ) : String
getConnection ( ) : DbConnection
getSchema ( ) : String
hasSchema ( ) : bool
sql ( SQLBuilder sqlBuilder ) : DbQuery
sql ( String code ) : DbQuery
table ( String table ) : DbTableQuery
tran ( ) : DbTran
tran ( Action handler ) : DbTran

Protected Methods

Method Description
doInit ( String schemaName, string connectionString, System.Data.Common.DbProviderFactory provider ) : void

Private Methods

Method Description
provider ( string providerString ) : System.Data.Common.DbProviderFactory

Method Details

DbContext() public method

public DbContext ( String schemaName, string name ) : System
schemaName String
name string
return System

DbContext() public method

public DbContext ( String schemaName, string connectionString, String fieldFormat, System.Data.Common.DbProviderFactory provider ) : System
schemaName String
connectionString string
fieldFormat String
provider System.Data.Common.DbProviderFactory
return System

DbContext() public method

public DbContext ( String schemaName, string name, string fieldFormat ) : System
schemaName String
name string
fieldFormat string
return System

call() public method

public call ( String process ) : DbStoredProcedure
process String
return DbStoredProcedure

doInit() protected method

protected doInit ( String schemaName, string connectionString, System.Data.Common.DbProviderFactory provider ) : void
schemaName String
connectionString string
provider System.Data.Common.DbProviderFactory
return void

field() public method

public field ( String key ) : String
key String
return String

getConnection() public method

public getConnection ( ) : DbConnection
return System.Data.Common.DbConnection

getSchema() public method

public getSchema ( ) : String
return String

hasSchema() public method

public hasSchema ( ) : bool
return bool

sql() public method

public sql ( SQLBuilder sqlBuilder ) : DbQuery
sqlBuilder SQLBuilder
return DbQuery

sql() public method

public sql ( String code ) : DbQuery
code String
return DbQuery

table() public method

public table ( String table ) : DbTableQuery
table String
return DbTableQuery

tran() public method

public tran ( ) : DbTran
return DbTran

tran() public method

public tran ( Action handler ) : DbTran
handler Action
return DbTran