Class SqlStatementProcessor
Sql statement processor
Inheritance
System.Object
SqlStatementProcessor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class SqlStatementProcessor
Constructors
| Improve this Doc View SourceSqlStatementProcessor()
Initialize new processor
Declaration
public SqlStatementProcessor()
Methods
| Improve this Doc View SourceGetTenantFilterTemplate(Int32, String)
Get the filter-template for the current user-id
Declaration
public string GetTenantFilterTemplate(int userId, string tenantColumnAlias)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId | |
System.String | tenantColumnAlias | Alias which is used for the tenant column |
Returns
Type | Description |
---|---|
System.String |
Process(String, IDictionary<String, String>)
Process given sql statements
Declaration
public string Process(string sql, IDictionary<string, string> sqlPlaceholder = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | sql | Sql text |
System.Collections.Generic.IDictionary<System.String, System.String> | sqlPlaceholder | Placeholder to replace |
Returns
Type | Description |
---|---|
System.String | Prepared sql statement |