Property | Type | Description | |
---|---|---|---|
Connection |
Method | Description | |
---|---|---|
Close ( ) : void |
Closes the persistent connection.
|
|
CreateConnection ( ) : |
Creates a new Sql connection using the default connection string defined in the web.config of the current web site.
|
|
CreateConnection ( string connectionName ) : |
Creates a new Sql connection using a named connection string defined in the web.config of the current site.
|
|
JsonReadOrDelete ( string objectName, int rowFrom, int rowTo ) : JsonResponse |
Read from SQL objects and return as JSON. Uses the JsonReadOrDelete stored procedure to return limited record sets to the Sql client. Great for streaming pages of data to a stateless web client.
|
|
JsonReadOrDelete ( string query, int rowFrom, int rowTo, System.Guid accountId, SqlParameter parameters, string orderBy, OrderDirection orderByDirection ) : JsonResponse |
Read from SQL objects and return as JSON. Uses the JsonReadOrDelete stored procedure to return limited record sets to the Sql client. Great for streaming pages of data to a stateless web client.
|
|
JsonReadOrDelete ( string query, int rowFrom, int rowTo, SqlParameter parameters, string orderBy, OrderDirection orderByDirection ) : JsonResponse |
Read from SQL objects and return as JSON. Uses the JsonReadOrDelete stored procedure to return limited record sets to the Sql client. Great for streaming pages of data to a stateless web client.
|
|
JsonReadOrDelete ( string objectName, int rowFrom, int rowTo, |
Read from SQL objects and return as JSON. Uses the JsonReadOrDelete stored procedure to return limited record sets to the Sql client. Great for streaming pages of data to a stateless web client.
|
|
JsonReadOrDelete ( string objectName, int rowFrom, int rowTo, |
Read from SQL objects and return as JSON. Uses the JsonReadOrDelete stored procedure to return limited record sets to the Sql client. Great for streaming pages of data to a stateless web client. Note: Delete requires a [RowVersion] rowversion column present in the table. State data is stored in the table UIColumns on a per user basis. Users are defined in Oda.Authentication class and in the table Accounts.
|
|
JsonReadOrDelete ( string query, int rowFrom, int rowTo, string orderBy, OrderDirection orderByDirection ) : JsonResponse |
Read from SQL objects and return as JSON. Uses the JsonReadOrDelete stored procedure to return limited record sets to the Sql client. Great for streaming pages of data to a stateless web client.
|
|
Open ( ) : void |
Opens the persistent connection.
|
Method | Description | |
---|---|---|
ConnectionStateChange ( object sender, |
||
CreateUpdateOrDelete ( string objectName, List | ||
GetWebConfigSettings ( ) : void |
Gets settings from the Web.Config file.
|
|
JsonReadOrDelete ( string query, int rowFrom, int rowTo, System.Guid accountId, SqlParameter parameters, string orderBy, OrderDirection orderByDirection, |
||
JsonReadOrDelete ( string objectName, int rowFrom, int rowTo, |
||
Sql ( ) : System |
public static CreateConnection ( ) : |
||
return |
public static CreateConnection ( string connectionName ) : |
||
connectionName | string | The name of the connection string. |
return |
public static JsonReadOrDelete ( string objectName, int rowFrom, int rowTo ) : JsonResponse | ||
objectName | string | Name of the table, view or object. |
rowFrom | int | The row to fetch from. |
rowTo | int | The row to fetch to. |
return | JsonResponse |
public static JsonReadOrDelete ( string query, int rowFrom, int rowTo, System.Guid accountId, SqlParameter parameters, string orderBy, OrderDirection orderByDirection ) : JsonResponse | ||
query | string | The query to execute. This will be turned into a vew that is removed when the HttpApplication is disposed. |
rowFrom | int | The row to fetch from. |
rowTo | int | The row to fetch to. |
accountId | System.Guid | The account id. |
parameters | SqlParameter | The parameters collection to use in the query. |
orderBy | string | The column order by. |
orderByDirection | OrderDirection | The order by direction. |
return | JsonResponse |
public static JsonReadOrDelete ( string query, int rowFrom, int rowTo, SqlParameter parameters, string orderBy, OrderDirection orderByDirection ) : JsonResponse | ||
query | string | The query to execute. This will be turned into a vew that is removed when the HttpApplication is disposed. |
rowFrom | int | The row to fetch from. |
rowTo | int | The row to fetch to. |
parameters | SqlParameter | The parameters collection to use in the query. |
orderBy | string | The column order by. |
orderByDirection | OrderDirection | The order by direction. |
return | JsonResponse |
public static JsonReadOrDelete ( string objectName, int rowFrom, int rowTo, |
||
objectName | string | Name of the table, view or object. |
rowFrom | int | The row to fetch from. |
rowTo | int | The row to fetch to. |
where | The where clause object. | |
return | JsonResponse |
public static JsonReadOrDelete ( string objectName, int rowFrom, int rowTo, |
||
objectName | string | Name of the table, view or object. |
rowFrom | int | The row to fetch from. |
rowTo | int | The row to fetch to. |
whereClause | The where clause object. | |
accountId | System.Guid | The account id. |
searchClause | The search clause object. | |
aggregates | string>.IDictionary | The aggregates to return if any. |
selectedRows | ICollection |
The selected rows. For use with the delete bit. |
includeSchemaData | bool | If set to |
checksum | System.Int64 | The checksum of the table. This is the some of the rowversion column. For use with the delete bit. |
deleteSelection | bool | if set to |
orderBy | string | The column order by. |
orderByDirection | OrderDirection | The direction to order by. |
return | JsonResponse |
public static JsonReadOrDelete ( string query, int rowFrom, int rowTo, string orderBy, OrderDirection orderByDirection ) : JsonResponse | ||
query | string | The query to execute. This will be turned into a vew that is removed when the HttpApplication is disposed. |
rowFrom | int | The row to fetch from. |
rowTo | int | The row to fetch to. |
orderBy | string | The column order by. |
orderByDirection | OrderDirection | The order by direction. |
return | JsonResponse |