Added basic configuration
This commit is contained in:
17
src/HopFrame.Core/Config/TableConfig.cs
Normal file
17
src/HopFrame.Core/Config/TableConfig.cs
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user