19 lines
728 B
C#
19 lines
728 B
C#
using MaxInventory.Core.Configuration;
|
|
using MaxInventory.Core.Enums;
|
|
|
|
namespace MaxInventory.Core.Registry
|
|
{
|
|
/// <summary>
|
|
/// Registry of field definitions for each content type.
|
|
/// Provides the metadata needed for dynamic grid and form generation.
|
|
/// </summary>
|
|
public interface IFieldDefinitionRegistry
|
|
{
|
|
///<summary>Gets all field definitions for a given content type, ordered by SortOrder.</summary>
|
|
IReadOnlyList<FieldDefinition> GetFieldsForContentType(ContentTypeName contentType);
|
|
|
|
///<summary>Gets a specific field definition by content type and property name.</summary>
|
|
FieldDefinition? GetField(ContentTypeName contentType, string propertyName);
|
|
}
|
|
}
|