Removed Template

This commit is contained in:
2025-01-16 16:43:46 +01:00
parent 3dde278955
commit 4908947217
6 changed files with 33 additions and 32 deletions

View File

@@ -13,7 +13,6 @@ public class PropertyConfig(PropertyInfo info, TableConfig table) {
public PropertyInfo? DisplayedProperty { get; set; }
public Func<object, string>? Formatter { get; set; }
public Func<string, object>? Parser { get; set; }
public Func<object>? Template { get; set; }
public Func<object?, Task<IEnumerable<string>>>? Validator { get; set; }
public bool Editable { get; set; } = true;
public bool Creatable { get; set; } = true;
@@ -61,11 +60,6 @@ public class PropertyConfig<TProp>(PropertyConfig config) {
return this;
}
public PropertyConfig<TProp> ValueTemplate(Func<TProp> template) {
InnerConfig.Template = () => template.Invoke()!;
return this;
}
public PropertyConfig<TProp> Editable(bool editable) {
InnerConfig.Editable = editable;
return this;