コード例 #1
0
        public CFieldM AddFieldId(SqlDbType TD, bool Autonumeric)
        {
            CFieldM result = this.AddField(SSN.Id, "", TD, 0, true, true, Autonumeric);

            result.ShowInGrid = false;
            return(result);
        }
コード例 #2
0
 private void AddFieldDesc(CFieldM field, string desc)
 {
     if (field == null)
     {
         throw new ArgumentNullException("El fiel a describir no puede ser nulo");
     }
     field.Desc = desc;
 }
コード例 #3
0
        public CFieldM AddField(string name, string titulo, SqlDbType td, int largo, bool isPrimaryKey, bool IsNullable, bool IsIdentity, int defaultWidth = 100, bool ShowInGrid = true)
        {
            CFieldM result = new CFieldM(this, name, titulo, td, largo, isPrimaryKey, IsNullable, IsIdentity, defaultWidth, ShowInGrid);

            this.lFieldAll.Add(result);
            if (isPrimaryKey)
            {
                this.lFieldPk.Add(result);
            }
            else
            {
                this.lFieldData.Add(result);
            }
            return(result);
        }