public class MainViewModel : ViewModelBase
{
public ObservableCollection<IncomeViewModel> Income { get; }
public MainViewModel()
{
Income = new ObservableCollection<IncomeViewModel>();
for (int i = 0; i < 1500; i++)
{
Income.Add(new IncomeViewModel
{
Title = "Зарплата " + (i + 1).ToString()
});
}
Income[0].IsModified = true;
Income[10].IsModified = true;
Income[20].IsModified = true;
}
}
ObservableCollection<T>
dotnet ef migrations add InitialLogs --startup-project "FutureBinanceApp.Web/FutureBinanceApp.Web.csproj" --project "FutureBinanceApp.Infrastructure.Data/FutureBinanceApp.Infrastructure.Data.csproj" --context "FutureBinanceApp.Infrastructure.Data.Contexts.LogContext"
services.AddAsyncInitializer<AccountInitializer>();