Browse Source

update

pull/1/head
wanggang 1 year ago
parent
commit
1c29465007
  1. 14
      docs/demo/src/WTA.Shared/Attributes/OneToOneAttribute.cs

14
docs/demo/src/WTA.Shared/Attributes/OneToOneAttribute.cs

@ -0,0 +1,14 @@
namespace WTA.Shared.Attributes;
[AttributeUsage(AttributeTargets.Property)]
public class OneToOneAttribute<TEntity> : Attribute, ITypeAttribute
{
public Type Type { get; set; } = null!;
public string? Property { get; }
public OneToOneAttribute(string? property = null)
{
this.Type = typeof(TEntity);
this.Property = property;
}
}
Loading…
Cancel
Save