Oct 10, 2012, 2:47 PM
[CLOSED] 'Model' is a namespace but is used like a 'type'
Hello,
Can you please let me know how to fix this error message while trying to create a new instance of the "Model" object : 'Model' is a 'namespace' but is used like a 'type'. I am using Ext 2.1.
Thanks in advance for your help.
Below is my code:
Can you please let me know how to fix this error message while trying to create a new instance of the "Model" object : 'Model' is a 'namespace' but is used like a 'type'. I am using Ext 2.1.
Thanks in advance for your help.
Below is my code:
public void BuildLevel(int level, string recId, string gridId, int TrailerNum)
{
var storeId = "L".ConcatWith(level, "_", recId, "_Store");
var newGridId = "L".ConcatWith(level, "_", recId, "_Grid");
// build store
var store = new Store { ID = storeId };
var model = new Model { IDProperty = "ID" };
model.Fields.Add("ID", "Name");
model.Fields.Add("Destination");
model.Fields.Add("TrailerNumber");
model.Fields.Add(new ModelField
{
Name = "Level",
DefaultValue = level.ToString()
});
store.Model.Add(model);
}
below is the entire list of using statement:using System;
using System.Collections.Generic;
using System.Linq;
using Ext.Net;
using Ext.Net.Utilities;
Last edited by Daniil; Oct 10, 2012 at 5:06 PM.
Reason: [CLOSED]