public CFieldM AddFieldId(SqlDbType TD, bool Autonumeric) { CFieldM result = this.AddField(SSN.Id, "", TD, 0, true, true, Autonumeric); result.ShowInGrid = false; return(result); }
private void AddFieldDesc(CFieldM field, string desc) { if (field == null) { throw new ArgumentNullException("El fiel a describir no puede ser nulo"); } field.Desc = desc; }
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); }