23 lines
588 B
C#
23 lines
588 B
C#
using SchoolDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SchoolDatabaseImplement.Models
|
|
{
|
|
public class Expense : IExpenseModel
|
|
{
|
|
public int Id { get; set; }
|
|
[Required]
|
|
public string ExpenseName { get; set; } = string.Empty;
|
|
[Required]
|
|
public double Sum { get; set; }
|
|
[ForeignKey("ExpenseId")]
|
|
public virtual List<CircleExpense> CircleExpenses { get; set; } = new();
|
|
}
|
|
}
|