Exemple #1
0
        public TableStructure(double datatypeId)
        {
            this.DatatypeId = datatypeId;
            MWMS.DAL.TableHandle        table = new MWMS.DAL.TableHandle("Datatype");
            Dictionary <string, object> model = table.GetModel(datatypeId, "tableName,tableStructure,displayField,id");

            Init(model);
        }
Exemple #2
0
        public TableStructure(string tableName)
        {
            MWMS.DAL.TableHandle        table = new MWMS.DAL.TableHandle("Datatype");
            Dictionary <string, object> p     = new Dictionary <string, object>();

            p.Add("tableName", tableName);
            Dictionary <string, object> model = table.GetModel("tableName,tableStructure,displayField,id", "tableName=@tableName", p);

            Init(model);
        }