Skip to content

Commit c91e5b7

Browse files
authored
account not initialize when using add accounts feature (#157)
Replaced context.AddRange(accounts) with context.Add(account) in a loop to add each account individually before saving changes. This may improve control over entity tracking or validation. Other logic remains unchanged.
1 parent 3713fb1 commit c91e5b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MainCore/Commands/UI/AddAccountsViewModel/AddAccountsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ IRxQueue rxQueue
4646
Value = value,
4747
});
4848
}
49+
context.Add(account);
4950
}
5051

51-
context.AddRange(accounts);
5252
context.SaveChanges();
5353

5454
rxQueue.Enqueue(new AccountsModified());

0 commit comments

Comments
 (0)