public override void FillCommandBuilder(ICommandBuilder commandBuilder) { FieldType fieldType = IsPrimaryKey ? Database.FieldType.KeyField : IsInsertable && IsUpdateAble ? Database.FieldType.WriteableField : IsInsertable ? Database.FieldType.InsertableField : IsUpdateAble ? Database.FieldType.UpdateableField : Database.FieldType.ReadOnlyField; commandBuilder.AddField(FieldName, fieldType); }