예제 #1
0
파일: DpoClass.cs 프로젝트: fjiang2/sqlcon
        private void Fields()
        {
            List <DpoField> imageFields = new List <DpoField>();

            foreach (IColumn column in metaTable.Columns)
            {
                DpoField field = new DpoField(this, column);
                field.GenerateField();
                if (column.CType == CType.Image)
                {
                    imageFields.Add(field);
                }
            }

            if (imageFields.Count > 0)
            {
                clss.AddMember("#region IMAGE PROPERTIES");
                foreach (DpoField field in imageFields)
                {
                    field.GenerateImageField();
                }
                clss.AddMember("#endregion");
            }

            return;
        }
예제 #2
0
파일: DpoClass.cs 프로젝트: fjiang2/sqlcon
        private void ConstStringColumnNames()
        {
            clss.AddMember("#region CONSTANT");

            foreach (IColumn column in metaTable.Columns)
            {
                DpoField field = new DpoField(this, column);
                field.GetConstStringColumnName();
            }

            clss.AddMember("#endregion");

            return;
        }
예제 #3
0
파일: DpoClass.cs 프로젝트: fjiang2/sqlcon
        private void Fields()
        {
            List<DpoField> imageFields = new List<DpoField>();

            foreach (IColumn column in metaTable.Columns)
            {
                DpoField field = new DpoField(this, column);
                field.GenerateField();
                if (column.CType == CType.Image)
                    imageFields.Add(field);
            }

            if (imageFields.Count > 0)
            {
                clss.AddMember("#region IMAGE PROPERTIES");
                foreach (DpoField field in imageFields)
                {
                    field.GenerateImageField();
                }
                clss.AddMember("#endregion");
            }

            return;
        }
예제 #4
0
파일: DpoClass.cs 프로젝트: fjiang2/sqlcon
        private void ConstStringColumnNames()
        {
            clss.AddMember("#region CONSTANT");

            foreach (IColumn column in metaTable.Columns)
            {
                DpoField field = new DpoField(this, column);
                field.GetConstStringColumnName();
            }

            clss.AddMember("#endregion");

            return;
        }