File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
Source/Framework/ZyGames.Framework/Model Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ protected AbstractEntity()
94
94
/// <summary>
95
95
/// Initializes a new instance of the <see cref="ZyGames.Framework.Model.AbstractEntity"/> class.
96
96
/// </summary>
97
- /// <param name="access">Access.</param>
97
+ /// <param name="access">Access. no used </param>
98
98
protected AbstractEntity ( AccessLevel access )
99
99
: this ( access == AccessLevel . ReadOnly )
100
100
{
@@ -109,7 +109,11 @@ protected AbstractEntity(bool isReadOnly)
109
109
{
110
110
_isNew = true ;
111
111
IsInCache = false ;
112
- _isReadOnly = isReadOnly ;
112
+ SchemaTable schema ;
113
+ if ( EntitySchemaSet . TryGet ( GetType ( ) , out schema ) )
114
+ {
115
+ _isReadOnly = schema . AccessLevel == AccessLevel . ReadOnly ;
116
+ }
113
117
}
114
118
115
119
/// <summary>
Original file line number Diff line number Diff line change @@ -30,10 +30,18 @@ namespace ZyGames.Framework.Model
30
30
/// </summary>
31
31
public abstract class ShareEntity : AbstractEntity , IComparable < ShareEntity >
32
32
{
33
+ /// <summary>
34
+ ///
35
+ /// </summary>
36
+ protected ShareEntity ( )
37
+ : base ( false )
38
+ {
39
+
40
+ }
33
41
/// <summary>
34
42
/// Initializes a new instance of the <see cref="ZyGames.Framework.Model.ShareEntity"/> class.
35
43
/// </summary>
36
- /// <param name="isReadonly">If set to <c>true</c> is readonly.</param>
44
+ /// <param name="isReadonly">If set to <c>true</c> is readonly. no used </param>
37
45
protected ShareEntity ( bool isReadonly )
38
46
: base ( isReadonly )
39
47
{
@@ -42,7 +50,7 @@ protected ShareEntity(bool isReadonly)
42
50
/// <summary>
43
51
///
44
52
/// </summary>
45
- /// <param name="access"></param>
53
+ /// <param name="access">no used </param>
46
54
protected ShareEntity ( AccessLevel access )
47
55
: base ( access )
48
56
{
You can’t perform that action at this time.
0 commit comments