@@ -34,17 +34,17 @@ public IType GetPropertyType(string propertyName)
34
34
35
35
public int [ ] FindDirty ( object [ ] currentState , object [ ] previousState , object entity , ISessionImplementor session )
36
36
{
37
- return new int [ ] { } ;
37
+ return Array . Empty < int > ( ) ;
38
38
}
39
39
40
40
public int [ ] FindModified ( object [ ] old , object [ ] current , object entity , ISessionImplementor session )
41
41
{
42
- return new int [ ] { } ;
42
+ return Array . Empty < int > ( ) ;
43
43
}
44
44
45
45
public object [ ] GetNaturalIdentifierSnapshot ( object id , ISessionImplementor session )
46
46
{
47
- return new object [ ] { } ;
47
+ return Array . Empty < object > ( ) ;
48
48
}
49
49
50
50
public object Load ( object id , object optionalObject , LockMode lockMode , ISessionImplementor session )
@@ -71,7 +71,7 @@ public void Update(object id, object[] fields, int[] dirtyFields, bool hasDirtyC
71
71
72
72
public object [ ] GetDatabaseSnapshot ( object id , ISessionImplementor session )
73
73
{
74
- return new object [ ] { } ;
74
+ return Array . Empty < object > ( ) ;
75
75
}
76
76
77
77
public object GetCurrentVersion ( object id , ISessionImplementor session )
@@ -112,7 +112,7 @@ public object CreateProxy(object id, ISessionImplementor session)
112
112
113
113
public object [ ] GetPropertyValuesToInsert ( object obj , IDictionary mergeMap , ISessionImplementor session )
114
114
{
115
- return new object [ ] { } ;
115
+ return Array . Empty < object > ( ) ;
116
116
}
117
117
118
118
public void ProcessInsertGeneratedProperties ( object id , object entity , object [ ] state , ISessionImplementor session )
@@ -149,7 +149,7 @@ public void SetPropertyValue(object obj, int i, object value, EntityMode entityM
149
149
150
150
public object [ ] GetPropertyValues ( object obj , EntityMode entityMode )
151
151
{
152
- return new object [ ] { } ;
152
+ return Array . Empty < object > ( ) ;
153
153
}
154
154
155
155
public object GetPropertyValue ( object obj , int i , EntityMode entityMode )
@@ -353,11 +353,11 @@ public IEntityPersister GetSubclassEntityPersister(object instance, ISessionFact
353
353
354
354
public string [ ] PropertySpaces
355
355
{
356
- get { return new string [ ] { } ; }
356
+ get { return Array . Empty < string > ( ) ; }
357
357
}
358
358
public string [ ] QuerySpaces
359
359
{
360
- get { return new string [ ] { } ; }
360
+ get { return Array . Empty < string > ( ) ; }
361
361
}
362
362
public bool IsMutable => false ;
363
363
@@ -373,49 +373,49 @@ public string[] QuerySpaces
373
373
374
374
public int [ ] NaturalIdentifierProperties
375
375
{
376
- get { return new int [ ] { } ; }
376
+ get { return Array . Empty < int > ( ) ; }
377
377
}
378
378
public IIdentifierGenerator IdentifierGenerator => null ;
379
379
380
380
public IType [ ] PropertyTypes
381
381
{
382
- get { return new IType [ ] { } ; }
382
+ get { return Array . Empty < IType > ( ) ; }
383
383
}
384
384
public string [ ] PropertyNames
385
385
{
386
- get { return new string [ ] { } ; }
386
+ get { return Array . Empty < string > ( ) ; }
387
387
}
388
388
public bool [ ] PropertyInsertability
389
389
{
390
- get { return new bool [ ] { } ; }
390
+ get { return Array . Empty < bool > ( ) ; }
391
391
}
392
392
public ValueInclusion [ ] PropertyInsertGenerationInclusions
393
393
{
394
- get { return new ValueInclusion [ ] { } ; }
394
+ get { return Array . Empty < ValueInclusion > ( ) ; }
395
395
}
396
396
public ValueInclusion [ ] PropertyUpdateGenerationInclusions
397
397
{
398
- get { return new ValueInclusion [ ] { } ; }
398
+ get { return Array . Empty < ValueInclusion > ( ) ; }
399
399
}
400
400
public bool [ ] PropertyCheckability
401
401
{
402
- get { return new bool [ ] { } ; }
402
+ get { return Array . Empty < bool > ( ) ; }
403
403
}
404
404
public bool [ ] PropertyNullability
405
405
{
406
- get { return new bool [ ] { } ; }
406
+ get { return Array . Empty < bool > ( ) ; }
407
407
}
408
408
public bool [ ] PropertyVersionability
409
409
{
410
- get { return new bool [ ] { } ; }
410
+ get { return Array . Empty < bool > ( ) ; }
411
411
}
412
412
public bool [ ] PropertyLaziness
413
413
{
414
- get { return new bool [ ] { } ; }
414
+ get { return Array . Empty < bool > ( ) ; }
415
415
}
416
416
public CascadeStyle [ ] PropertyCascadeStyles
417
417
{
418
- get { return new CascadeStyle [ ] { } ; }
418
+ get { return Array . Empty < CascadeStyle > ( ) ; }
419
419
}
420
420
public IType IdentifierType => null ;
421
421
@@ -457,7 +457,7 @@ public CascadeStyle[] PropertyCascadeStyles
457
457
458
458
public bool [ ] PropertyUpdateability
459
459
{
460
- get { return new bool [ ] { } ; }
460
+ get { return Array . Empty < bool > ( ) ; }
461
461
}
462
462
public bool HasCache => false ;
463
463
0 commit comments