Example #1
0
        public static MyMetaClass Load(IDataRecord reader)
        {
            MyMetaClass ret = new MyMetaClass();

            ret.MetaClassId      = (int)reader["MetaClassId"];
            ret.Name             = reader["Name"].ToString();
            ret.TableName        = reader["TableName"].ToString();
            ret.TableNameHistory = ret.TableName + "_History";

            return(ret);
        }
Example #2
0
        public static MyMetaClass Load(IDataRecord reader)
        {
            MyMetaClass ret = new MyMetaClass();

            ret.MetaClassId = (int)reader["MetaClassId"];
            ret.Name = reader["Name"].ToString();
            ret.TableName = reader["TableName"].ToString();
            ret.TableNameHistory = ret.TableName + "_History";

            return ret;
        }
Example #3
0
        public static ArrayList LoadList(DBHelper source)
        {
            ArrayList ret = new ArrayList();

            using (IDataReader reader = source.RunTextDataReader("SELECT [MetaClassId], [Name], [TableName] FROM [MetaClass] WHERE [IsSystem] = 0 AND [IsAbstract] = 0"))
            {
                while (reader.Read())
                {
                    MyMetaClass item = Load(reader);
                    if (item.Name != "AssetsEx")
                    {
                        ret.Add(item);
                    }
                }
            }
            return(ret);
        }