fix
This commit is contained in:
@@ -4,7 +4,7 @@ using MyOffice.Data.Models.Motions;
|
|||||||
|
|
||||||
public class AccountMotion
|
public class AccountMotion
|
||||||
{
|
{
|
||||||
public long Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
public DateTime CreatedOn { get; set; }
|
public DateTime CreatedOn { get; set; }
|
||||||
public DateTime DateTime { get; set; }
|
public DateTime DateTime { get; set; }
|
||||||
public int MotionId { get; set; }
|
public int MotionId { get; set; }
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ public class AppDbContext : DbContext
|
|||||||
public DbSet<MotionGlobal> GlobalMotions { get; set; } = null!;
|
public DbSet<MotionGlobal> GlobalMotions { get; set; } = null!;
|
||||||
public DbSet<MotionCategory> MotionCategories { get; set; } = null!;
|
public DbSet<MotionCategory> MotionCategories { get; set; } = null!;
|
||||||
public DbSet<MotionAccount> Motions { get; set; } = null!;
|
public DbSet<MotionAccount> Motions { get; set; } = null!;
|
||||||
//public DbSet<AccountMotion> AccountMotions { get; set; } = null!;
|
public DbSet<AccountMotion> AccountMotions { get; set; } = null!;
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
@@ -196,7 +196,7 @@ public class AppDbContext : DbContext
|
|||||||
.WithMany(x => x.Motions)
|
.WithMany(x => x.Motions)
|
||||||
.HasForeignKey(x => x.MotionGlobalId);
|
.HasForeignKey(x => x.MotionGlobalId);
|
||||||
|
|
||||||
/*modelBuilder.Entity<AccountMotion>()
|
modelBuilder.Entity<AccountMotion>()
|
||||||
.HasOne(x => x.Motion)
|
.HasOne(x => x.Motion)
|
||||||
.WithMany(x => x.Motions)
|
.WithMany(x => x.Motions)
|
||||||
.HasForeignKey(x => x.MotionId);
|
.HasForeignKey(x => x.MotionId);
|
||||||
@@ -204,6 +204,6 @@ public class AppDbContext : DbContext
|
|||||||
modelBuilder.Entity<AccountMotion>()
|
modelBuilder.Entity<AccountMotion>()
|
||||||
.HasOne(x => x.Account)
|
.HasOne(x => x.Account)
|
||||||
.WithMany(x => x.Motions)
|
.WithMany(x => x.Motions)
|
||||||
.HasForeignKey(x => x.AccountId);*/
|
.HasForeignKey(x => x.AccountId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
{
|
{
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
public string Motion { get; set; } = null!;
|
public string Motion { get; set; } = null!;
|
||||||
public string? Description { get; set; };
|
public string? Description { get; set; }
|
||||||
public decimal Plus { get; set; }
|
public decimal Plus { get; set; }
|
||||||
public decimal Minus { get; set; }
|
public decimal Minus { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user