Added basic configuration

This commit is contained in:
2025-01-14 11:34:57 +01:00
parent e093d01c6a
commit f0bc9e23b8
30 changed files with 860 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
namespace HopFrame.Core.Config;
public class TableConfig(DbContextConfig config, Type tableType, string propertyName) {
public Type TableType { get; } = tableType;
public string PropertyName { get; } = propertyName;
public DbContextConfig ContextConfig { get; } = config;
public bool Ignored { get; set; }
}
public class TableConfig<TModel>(TableConfig innerConfig) {
public TableConfig<TModel> Ignore() {
innerConfig.Ignored = true;
return this;
}
}