mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-26 21:13:13 +00:00
Source Generation
This commit is contained in:
@ -5,7 +5,7 @@ using System.Text;
|
||||
namespace Esiur.Resource
|
||||
{
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Method | AttributeTargets.Event)]
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event)]
|
||||
public class AnnotationAttribute : Attribute
|
||||
{
|
||||
|
||||
|
@ -30,6 +30,7 @@ using Esiur.Data;
|
||||
using Esiur.Core;
|
||||
using System.ComponentModel;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Esiur.Resource
|
||||
{
|
||||
@ -41,6 +42,8 @@ namespace Esiur.Resource
|
||||
{
|
||||
|
||||
AsyncReply<bool> Trigger(ResourceTrigger trigger);
|
||||
|
||||
[NotMapped]
|
||||
Instance Instance
|
||||
{
|
||||
get;
|
||||
|
@ -14,9 +14,11 @@ using Esiur.Security.Authority;
|
||||
using Esiur.Proxy;
|
||||
using Esiur.Core;
|
||||
using System.Text.Json;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Esiur.Resource
|
||||
{
|
||||
[NotMapped]
|
||||
public class Instance
|
||||
{
|
||||
string name;
|
||||
|
Reference in New Issue
Block a user