C# Class Frapid.Configuration.FrapidDbServer

显示文件 Open project: frapid/frapid

Public Methods

Method Description
AddLimit ( string tenant, string limit ) : string
AddOffset ( string tenant, string offset ) : string
AddReturnInsertedKey ( string tenant, string primaryKeyName ) : string
DefaultSchemaQualify ( string tenant, string input ) : string
GetConnectionString ( string tenant, string database = "", string userId = "", string password = "" ) : string
GetConnectionString ( string tenant, string host, string database, string username, string password, int port ) : string
GetDbTimestampFunction ( string tenant ) : string
GetMetaConnectionString ( string tenant ) : string
GetProcedureCommand ( string tenant, string procedureName, string parameters ) : string

Do not use this function if the any of the paramters come from user input.

GetReportUserConnectionString ( string tenant, string database = "" ) : string
GetServer ( string tenant ) : IDbServer
GetSuperUserConnectionString ( string tenant, string database = "" ) : string

Method Details

AddLimit() public static method

public static AddLimit ( string tenant, string limit ) : string
tenant string
limit string
return string

AddOffset() public static method

public static AddOffset ( string tenant, string offset ) : string
tenant string
offset string
return string

AddReturnInsertedKey() public static method

public static AddReturnInsertedKey ( string tenant, string primaryKeyName ) : string
tenant string
primaryKeyName string
return string

DefaultSchemaQualify() public static method

public static DefaultSchemaQualify ( string tenant, string input ) : string
tenant string
input string
return string

GetConnectionString() public static method

public static GetConnectionString ( string tenant, string database = "", string userId = "", string password = "" ) : string
tenant string
database string
userId string
password string
return string

GetConnectionString() public static method

public static GetConnectionString ( string tenant, string host, string database, string username, string password, int port ) : string
tenant string
host string
database string
username string
password string
port int
return string

GetDbTimestampFunction() public static method

public static GetDbTimestampFunction ( string tenant ) : string
tenant string
return string

GetMetaConnectionString() public static method

public static GetMetaConnectionString ( string tenant ) : string
tenant string
return string

GetProcedureCommand() public static method

Do not use this function if the any of the paramters come from user input.
public static GetProcedureCommand ( string tenant, string procedureName, string parameters ) : string
tenant string The database or tenant name.
procedureName string Name of the stored procedure or function.
parameters string List of parameters of the function
return string

GetReportUserConnectionString() public static method

public static GetReportUserConnectionString ( string tenant, string database = "" ) : string
tenant string
database string
return string

GetServer() public static method

public static GetServer ( string tenant ) : IDbServer
tenant string
return IDbServer

GetSuperUserConnectionString() public static method

public static GetSuperUserConnectionString ( string tenant, string database = "" ) : string
tenant string
database string
return string