Use WeakKeyreferenceDictionary for reverseCaching in ClassMapping
parent
4cee7faffd
commit
7c53ff8dc2
|
@ -11,7 +11,7 @@ namespace ln.types.odb.ng.mappings
|
|||
|
||||
public class ClassMapping : IODBMapping
|
||||
{
|
||||
WeakKeyDictionary<object, Guid> reverseCache = new WeakKeyDictionary<object, Guid>();
|
||||
WeakKeyReferenceDictionary<object, Guid> reverseCache = new WeakKeyReferenceDictionary<object, Guid>();
|
||||
WeakValueDictionary<Guid, object> forwardCache = new WeakValueDictionary<Guid, object>();
|
||||
|
||||
public delegate object GetID(object o);
|
||||
|
@ -36,9 +36,6 @@ namespace ln.types.odb.ng.mappings
|
|||
{
|
||||
mappedFields.Add(fieldinfo);
|
||||
}
|
||||
//foreach (PropertyInfo propInfo in type.GetProperties(BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public))
|
||||
//{
|
||||
//}
|
||||
|
||||
if ((type != null) && !type.IsValueType && (!typeof(object).Equals(type.BaseType)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue