2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-01-27 01:20:39 +00:00

templates

This commit is contained in:
2026-01-26 19:36:06 +03:00
parent f8d7630c21
commit c807cadff3
9 changed files with 74 additions and 19 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
using static Esiur.Resource.Template.PropertyTemplate;
namespace Esiur.Resource;
@@ -10,6 +11,7 @@ namespace Esiur.Resource;
public class ExportAttribute : Attribute
{
public string Name { get; private set; } = null;
public PropertyPermission? Permission { get; private set; }
public ExportAttribute()
{
@@ -21,4 +23,17 @@ public class ExportAttribute : Attribute
Name = name;
}
public ExportAttribute(PropertyPermission permission)
{
Permission = permission;
}
public ExportAttribute(string name, PropertyPermission permission)
{
Name = name;
Permission = permission;
}
}