2 instantiations of MetaModel
System.Web.DynamicData (2)
DynamicData\MetaModel.cs (2)
299
MetaModel model = new
MetaModel
(false /* registerGlobally */);
307
MetaModel model = new
MetaModel
(false /* registerGlobally */);
39 references to MetaModel
System.Web.DynamicData (39)
DynamicData\DynamicDataRoute.cs (5)
13
private
MetaModel
_model;
45
public
MetaModel
Model {
46
get { return _model ??
MetaModel
.Default; }
127
var
model = modelObject as
MetaModel
;
DynamicData\DynamicDataRouteHandler.cs (2)
33
public
MetaModel
Model { get; internal set; }
213
MetaModel
model = route.Model;
DynamicData\DynamicHyperLink.cs (2)
258
MetaModel
model =
MetaModel
.GetModel(contextType);
DynamicData\EntityTemplateFactory.cs (1)
124
internal void Initialize(
MetaModel
model) {
DynamicData\FieldTemplateFactory.cs (2)
58
public
MetaModel
Model {
313
public virtual void Initialize(
MetaModel
model) {
DynamicData\FilterFactory.cs (1)
35
internal void Initialize(
MetaModel
model) {
DynamicData\FilterRepeater.cs (2)
163
MetaModel
model;
165
model =
MetaModel
.GetModel(contextType);
DynamicData\FilterUserControlBase.cs (2)
150
MetaModel
model = null;
152
model =
MetaModel
.GetModel(contextType);
DynamicData\IFieldTemplateFactory.cs (1)
13
void Initialize(
MetaModel
model);
DynamicData\MetaColumn.cs (1)
230
public
MetaModel
Model { get { return Table.Model; } }
DynamicData\MetaModel.cs (11)
31
private static
MetaModel
s_defaultModel;
104
public static
MetaModel
Default {
117
public static
MetaModel
GetModel(Type contextType) {
122
MetaModel
model;
291
internal static
MetaModel
CreateSimpleModel(Type entityType) {
299
MetaModel
model = new MetaModel(false /* registerGlobally */);
306
internal static
MetaModel
CreateSimpleModel(ICustomTypeDescriptor descriptor) {
307
MetaModel
model = new MetaModel(false /* registerGlobally */);
615
internal static void AddModel(Type contextType,
MetaModel
model) {
623
internal static bool TryGetModel(Type contextType, out
MetaModel
model) {
624
model = (
MetaModel
)s_modelByContextType[contextType];
DynamicData\MetaTable.cs (6)
207
public
MetaModel
Model { get; private set; }
305
public MetaTable(
MetaModel
metaModel, TableProvider tableProvider) {
346
return
MetaModel
.CreateSimpleModel(entityType).Tables.First();
350
return
MetaModel
.CreateSimpleModel(typeDescriptor).Tables.First();
953
MetaModel
.CheckForRegistrationException();
958
return System.Web.DynamicData.
MetaModel
.MetaModelManager.TryGetTable(entityType, out table);
DynamicData\Util\MetaTableHelper.cs (2)
111
MetaModel
model;
112
if (
MetaModel
.MetaModelManager.TryGetModel(contextType, out model)) {
DynamicData\Util\TemplateFactory.cs (1)
16
internal
MetaModel
Model { get; set; }