Is this the right way to do a console application's data context?
AppTools
.Init("App's daily operations",
false,
new GlobalLogic(),
() => new DataAccessState(cn => cn.Open()));
If not, then how to do it?
new DataAcc" /> new DataAcc" /> new DataAcc"/>
Is this the right way to do a console application's data context?
AppTools
.Init("App's daily operations",
false,
new GlobalLogic(),
() => new DataAccessState(cn => cn.Open()));
If not, then how to do it?
Copyright © 2021 Jogjafile Inc.
If you're talking about a server-side console app, you don't even need to call
AppTools.Init. Here's the correct way:Program.cs.In the file, your class should look like this: