You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@ -41,6 +41,11 @@ namespace System.Data.Entity.Util
|
||||
_SimplifyUserSpecifiedViews = true;
|
||||
}
|
||||
|
||||
if (settings == null || !int.TryParse(settings["EntityFramework_QueryCacheSize"], out _QueryCacheSize) || _QueryCacheSize < 1)
|
||||
{
|
||||
_QueryCacheSize = DefaultQueryCacheSize;
|
||||
}
|
||||
|
||||
_settingsInitialized = true;
|
||||
}
|
||||
}
|
||||
@ -67,5 +72,16 @@ namespace System.Data.Entity.Util
|
||||
return _SimplifyUserSpecifiedViews;
|
||||
}
|
||||
}
|
||||
|
||||
private static int _QueryCacheSize;
|
||||
private const int DefaultQueryCacheSize = 1000;
|
||||
internal static int QueryCacheSize
|
||||
{
|
||||
get
|
||||
{
|
||||
EnsureSettingsLoaded();
|
||||
return _QueryCacheSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user