private void LoadSchema()
        {
            m_schema = Feng.Data.DbHelper.Instance.GetSchema(m_tableName);

            foreach (System.Data.DataRow row in m_schema.Rows)
            {
                if (ConvertHelper.ToBoolean(row["IsIdentity"]).Value)
                {
                    m_idName   = (string)row["ColumnName"];
                    m_idLength = ConvertHelper.ToInt(row["ColumnSize"]).Value;
                }

                m_propertyInfos[(string)row["ColumnName"]] = new EntityPropertyMetadata
                {
                    Name    = (string)row["ColumnName"],
                    Length  = ConvertHelper.ToInt(row["ColumnSize"]).Value,
                    NotNull = !ConvertHelper.ToBoolean(row["AllowDBNull"]).Value
                };
            }
        }
        private void LoadSchema()
        {
            m_schema = Feng.Data.DbHelper.Instance.GetSchema(m_tableName);

            foreach (System.Data.DataRow row in m_schema.Rows)
            {
                if (ConvertHelper.ToBoolean(row["IsIdentity"]).Value)
                {
                    m_idName = (string)row["ColumnName"];
                    m_idLength = ConvertHelper.ToInt(row["ColumnSize"]).Value;
                }

                m_propertyInfos[(string)row["ColumnName"]] = new EntityPropertyMetadata
                        {
                            Name = (string)row["ColumnName"],
                            Length = ConvertHelper.ToInt(row["ColumnSize"]).Value,
                            NotNull = !ConvertHelper.ToBoolean(row["AllowDBNull"]).Value
                        };
            }
        }