瀏覽代碼

Added small description on RequiredColumnAttribute

Kenric Nugteren 8 月之前
父節點
當前提交
b45f951c2b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      InABox.Core/Entity.cs

+ 3 - 0
InABox.Core/Entity.cs

@@ -202,6 +202,9 @@ namespace InABox.Core
     /// If it is part of an <see cref="IEntityLink"/> (or <see cref="IEnclosedEntity"/>), then it is only required
     /// If it is part of an <see cref="IEntityLink"/> (or <see cref="IEnclosedEntity"/>), then it is only required
     /// if the <see cref="IEntityLink"/> property on the parent class also has <see cref="RequiredColumnAttribute"/>.
     /// if the <see cref="IEntityLink"/> property on the parent class also has <see cref="RequiredColumnAttribute"/>.
     /// </summary>
     /// </summary>
+    /// <remarks>
+    /// In general, this should be used in one of two places - either if the property is required by the store for the entity, or if it is used by the <see cref="BaseObject.DoPropertyChanged(string, object?, object?)"/> function.
+    /// </remarks>
     public class RequiredColumnAttribute : Attribute { }
     public class RequiredColumnAttribute : Attribute { }
 
 
     public abstract class Entity : BaseObject, IEntity
     public abstract class Entity : BaseObject, IEntity