EntityCore

This commit is contained in:
ahmed committed 2020-02-15 11:21:28 +03:00
1 parent 3205499747
commit 7a21f6a928
27 files changed
+962 -830

No files matched your search

+2 -2
View File
@@ -48,8 +48,8 @@ namespace Esyur.Proxy
#if NETSTANDARD
var typeInfo = type.GetTypeInfo();
if (typeInfo.IsSealed)
throw new Exception("Sealed class can't be proxied.");
if (typeInfo.IsSealed || typeInfo.IsAbstract)
throw new Exception("Sealed/Abastract classes can't be proxied.");
var props = from p in typeInfo.GetProperties()
where p.CanWrite && p.GetSetMethod().IsVirtual &&