Fixed DateTime now.

single line
pull/1/head
Basimodo 2021-06-25 12:12:06 +07:00
parent bc137b27ee
commit e813777a0f
1 changed files with 4 additions and 8 deletions

@ -447,8 +447,7 @@ namespace Gremlin.GremlinData.DBClasses
{ {
using (GremlinContext db = new()) using (GremlinContext db = new())
{ {
DateTime now; DateTime now = DateTime.Now;
now = DateTime.Now;
Random r = new(); Random r = new();
@ -609,8 +608,7 @@ namespace Gremlin.GremlinData.DBClasses
//Eingelesenen Account in DB schreiben: //Eingelesenen Account in DB schreiben:
using (GremlinContext db = new()) using (GremlinContext db = new())
{ {
DateTime now; DateTime now = DateTime.Now;
now = DateTime.Now;
foreach (Contact contact in ContactsReadFromFile) foreach (Contact contact in ContactsReadFromFile)
{ {
@ -1014,8 +1012,7 @@ namespace Gremlin.GremlinData.DBClasses
//Eingelesenen Account in DB schreiben: //Eingelesenen Account in DB schreiben:
using (GremlinContext db = new()) using (GremlinContext db = new())
{ {
DateTime now; DateTime now = DateTime.Now;
now = DateTime.Now;
foreach (Account account in AccountsReadFromFile) foreach (Account account in AccountsReadFromFile)
{ {
@ -1796,8 +1793,7 @@ namespace Gremlin.GremlinData.DBClasses
{ {
using (GremlinContext db = new()) using (GremlinContext db = new())
{ {
DateTime now; DateTime now = DateTime.Now;
now = DateTime.Now;
List<ProductLine> productLines = db.ProductLines.ToList(); List<ProductLine> productLines = db.ProductLines.ToList();
foreach (Product product in products) foreach (Product product in products)
{ {