Skip to content

Commit

Permalink
Update CSharpRuntimeModelCodeGeneratorTest
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd committed Aug 20, 2021
1 parent 18e2cda commit f6c9064
Showing 1 changed file with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,22 +483,17 @@ namespace Internal
[DbContext(typeof(DbContext))]
partial class DbContextModel : RuntimeModel
{
private static DbContextModel _instance;
public static IModel Instance
static DbContextModel()
{
get
{
if (_instance == null)
{
_instance = new DbContextModel();
_instance.Initialize();
_instance.Customize();
}
return _instance;
}
var model = new DbContextModel();
model.Initialize();
model.Customize();
_instance = model;
}
private static DbContextModel _instance;
public static IModel Instance => _instance;
partial void Initialize();
partial void Customize();
Expand Down

0 comments on commit f6c9064

Please sign in to comment.