budget_details
This commit is contained in:
parent
8e930d1661
commit
d90ca7e51f
@ -29,7 +29,16 @@ namespace asg_form.Controllers.Budget
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class budget_details
|
||||||
|
{
|
||||||
|
public string Id { get; set; }
|
||||||
|
public int budgetId { get; set; }
|
||||||
|
public string budgetDetail { get; set; }
|
||||||
|
public int useMoney { get; set; }
|
||||||
|
public string reqPerson { get; set; }
|
||||||
|
public int reqId { get; set; }
|
||||||
|
public string reqDate { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class BgCountController : ControllerBase
|
public class BgCountController : ControllerBase
|
||||||
{
|
{
|
||||||
|
@ -264,6 +264,30 @@ namespace asg_form.Controllers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class BudgetRequestConfig : IEntityTypeConfiguration<budget_details>
|
||||||
|
{
|
||||||
|
public void Configure(EntityTypeBuilder<budget_details> builder)
|
||||||
|
{
|
||||||
|
builder.ToTable("T_budget_details");
|
||||||
|
|
||||||
|
builder.HasKey(e => e.Id);
|
||||||
|
|
||||||
|
builder.Property(e => e.Id) .HasColumnType("varchar(max)");
|
||||||
|
|
||||||
|
builder.Property(e => e.budgetId) .HasColumnType("int");
|
||||||
|
|
||||||
|
builder.Property(e => e.budgetDetail).HasColumnType("longtext");
|
||||||
|
|
||||||
|
builder.Property(e => e.useMoney).HasColumnType("int");
|
||||||
|
|
||||||
|
builder.Property(e => e.reqPerson).HasColumnType("varchar(255)");
|
||||||
|
|
||||||
|
builder.Property(e => e.reqId) .HasColumnType("int");
|
||||||
|
|
||||||
|
builder.Property(e => e.reqDate) .HasColumnType("varchar(255)");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class TestDbContext : DbContext
|
class TestDbContext : DbContext
|
||||||
{
|
{
|
||||||
/* public DbSet<T_Team> Teams { get; set; }
|
/* public DbSet<T_Team> Teams { get; set; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user