public static EntityBuilder AppointmentCustomFields(EntityBuilder e) { return(e.Add(new FieldConfig() { CodeName = "ID", CodeType = typeof(String), IsPrimary = true, DBName = "AppointmentID", DBType = DbType.Int32 }) .Add(new FieldConfig() { CodeName = "CF1", CodeType = typeof(String), DBName = "CF1_COL", DBType = DbType.String }) .Add(new FieldConfig() { CodeName = "CF2", CodeType = typeof(String), DBName = "CF2_COL", DBType = DbType.String }) .Add(new FieldConfig() { CodeName = "CF3", CodeType = typeof(int), DBName = "CF3_COL", DBType = DbType.Int32 }) .Add(new FieldConfig() { CodeName = "CF4", CodeType = typeof(DateTime), DBName = "CF4_COL", DBType = DbType.DateTime })); }