Data
|
public class DataContext : IDisposable
The DataContext type exposes the following members.
Name | Description | |
---|---|---|
DataContext(String, IRazorEngine, ActionException) | Creates a new DataContext using the specified settingsCategory. | |
DataContext(AdoDataConnection, Boolean, IRazorEngine, ActionException) | Creates a new DataContext. |
Name | Description | |
---|---|---|
AddCheckBoxFieldTemplate | Gets or sets the check box field razor template file name. | |
AddDateFieldTemplate | Gets or sets the date field razor template file name. | |
AddInputFieldTemplate | Gets or sets the input field razor template file name. | |
AddSelectFieldTemplate | Gets or sets the select field razor template file name. | |
AddTextAreaFieldTemplate | Gets or sets the text area field razor template file name. | |
Connection | Gets the AdoDataConnection for this DataContext, creating a new one if needed. | |
CustomTableOperationTokens | Gets dictionary of per-model custom tokens to use with AmendExpressionAttribute values for TableOperationsT in this DataContext . | |
DefinedDateFields | Gets defined date fields, if any. | |
FieldValidationParameters | Gets validation pattern and error message for rendered fields, if any. | |
FieldValueInitializers | Gets field value initializers, if any. | |
InitialFocusField | Gets field name designated for initial focus. | |
RazorEngine | Gets reference to IRazorEngine used by this DataContext. | |
ReadonlyHotLinkFields | Gets any text input fields that should render clickable URLs and e-mail addresses when in view mode. |
Name | Description | |
---|---|---|
AddCheckBoxField(String, String, String, String, String, String, String, String, Boolean) | Generates template based check box field based on specified parameters. | |
AddCheckBoxFieldTModel(String, String, String, String, String, String, String, String, Boolean) | Generates template based check box field based on reflected modeled table field attributes. | |
AddDateField(String, Boolean, Int32, String, String, String, String, String, String, String, String, String, Boolean) | Generates template based input date field based on specified parameters. | |
AddDateFieldTModel(String, String, String, String, String, String, String, String, String, String, Boolean) | Generates template based input date field based on reflected modeled table field attributes. | |
AddFieldValidation | Adds a new pattern based validation and option error message to a field. | |
AddFieldValueInitializer(String, String) | Adds a new field value initializer. | |
AddFieldValueInitializerTModel(String) | Adds a new field value initializer based on modeled table field attributes. | |
AddInputField(String, Boolean, Int32, String, String, String, String, String, String, String, String, String, Boolean, Boolean) | Generates template based input text field based on specified parameters. | |
AddInputFieldTModel(String, String, String, String, String, String, String, String, String, String, Boolean, Boolean) | Generates template based input text field based on reflected modeled table field attributes. | |
AddPageDefinedFieldInitialization | Adds field initialization, and optional validation, from a page-defined (e.g., loaded from database) parameter definition. | |
AddReadOnlyHotLinkField | Renders a read-only field with enabled hot links for a given text input field when in view mode. | |
AddSelectFieldTModel(DictionaryString, String, String, Boolean, String, String, String, String, String, String, String, String, String, Boolean, Boolean, String, Boolean, String, Boolean, String, String) | Generates template based select field based on a dictionary of field attributes. | |
AddSelectFieldTOption(String, Boolean, String, String, String, String, String, String, String, String, String, String, String, String, Boolean, RecordRestriction, Boolean, String, Boolean, String, Boolean, String, String) | Generates template based select field based on specified parameters. | |
AddSelectFieldTModel, TOption(String, String, String, String, String, String, String, String, String, String, String, String, String, Boolean, RecordRestriction, Boolean, String, Boolean, String, Boolean, String, String) | Generates template based select field based on reflected modeled table field attributes. | |
AddSelectFieldFromEnumTOption(String, Boolean, String, String, String, String, String, String, String, String, String, Boolean, Boolean, String, Boolean, String, Boolean, String, String) | Generates template based select field based on specified parameters. | |
AddSelectFieldFromEnumTModel, TOption(String, String, String, String, String, String, String, String, String, String, Boolean, Boolean, String, Boolean, String, Boolean, String, String) | Generates template based select field based on reflected modeled enum field attributes. | |
AddTextAreaField(String, Boolean, Int32, Int32, String, String, String, String, String, String, String, String, Boolean, Boolean) | Generates template based text area field based on specified parameters. | |
AddTextAreaFieldTModel(String, Int32, String, String, String, String, String, String, String, String, Boolean, Boolean) | Generates template based text area field based on reflected modeled table field attributes. | |
ConfigureView(HttpRequestMessage, Object) | Configures a simple view with common view bag parameters. | |
ConfigureView(RequestContext, Object) | Configures a simple view with common view bag parameters. | |
ConfigureView(String, Object) | Configures a simple view with common view bag parameters. | |
ConfigureView(Type, Type, HttpRequestMessage, Object) | Configures a view establishing user roles based on modeled table model and SignalR hub. | |
ConfigureView(Type, Type, String, Object) | Configures a view establishing user roles based on modeled table model and SignalR hub. | |
ConfigureView(Type, Type, RequestContext, Object) | Configures a view establishing user roles based on modeled table model and SignalR hub. | |
ConfigureViewTModel, THub(HttpRequestMessage, Object) | Configures a view establishing user roles based on modeled table TModel and SignalR THub. | |
ConfigureViewTModel, THub(RequestContext, Object) | Configures a view establishing user roles based on modeled table TModel and SignalR THub. | |
ConfigureViewTModel, THub(String, Object) | Configures a view establishing user roles based on modeled table TModel and SignalR THub. | |
Dispose | Releases all the resources used by the DataContext object. | |
Dispose(Boolean) | Releases the unmanaged resources used by the DataContext object and optionally releases the managed resources. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
EstablishUserRolesForPage(Type, RecordOperationsCache, Object) | Looks up proper user roles for paged based on modeled security in RecordOperationsCache. | |
EstablishUserRolesForPage(Type, Type, Object) | Looks up proper user roles for paged based on modeled security in RecordOperationsCache. | |
EstablishUserRolesForPageTModel(RecordOperationsCache, Object) | Looks up proper user roles for paged based on modeled security in RecordOperationsCache. | |
EstablishUserRolesForPageTModel, THub(Object) | Looks up proper user roles for paged based on modeled security in RecordOperationsCache. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetIsDeletedFlag(Type) | Gets the field name targeted to mark a record as deleted. | |
GetIsDeletedFlagTModel | Gets the field name targeted to mark a record as deleted. | |
GetPrimaryLabelField(Type) | Gets the field name targeted as the primary label for the modeled table. | |
GetPrimaryLabelFieldTModel | Gets the field name targeted as the primary label for the modeled table. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
RenderLookupFunctionTModel | Renders client-side Javascript function for looking up single values from a table. | |
RenderViewModelConfigurationTModel(RecordOperationsCache, Object, String, String, String, Object) | Renders client-side configuration script for paged view model. | |
RenderViewModelConfigurationTModel, THub(Object, String, String, Object) | Renders client-side configuration script for paged view model. | |
Table(Type) | Gets the table operations for the specified modeled table type model. | |
TableTModel | Gets the table operations for the specified modeled table TModel. | |
ToString | Returns a string that represents the current object. (Inherited from Object) | |
UserIsInGroup(SecurityPrincipal, String) | Determines if user is in a specific group or list of groups (comma separated). | |
UserIsInGroup(SecurityPrincipal, String) | Determines if user is in one of the provided of groups. | |
UserIsInRole(SecurityPrincipal, String) | Determines if user is in a specific role or list of roles (comma separated). | |
UserIsInRole(SecurityPrincipal, String) | Determines if user is in one of the provided of roles. |
Name | Description | |
---|---|---|
UrlValidation | Defines the regular expression used to validate URLs. |
Name | Description | |
---|---|---|
GetEnumValueOrDefault |
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) | |
GetEnumValueOrDefaultT |
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions) |