2023-04-06 22:52:23 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2023-04-07 00:30:18 +04:00
|
|
|
|
public int Id { get; private set; }
|
2023-04-06 22:52:23 +04:00
|
|
|
|
[Required]
|
2023-04-07 00:30:18 +04:00
|
|
|
|
public double Sum { get; private set; }
|
2023-04-06 22:52:23 +04:00
|
|
|
|
[ForeignKey("ExpenseId")]
|
|
|
|
|
public virtual List<CircleExpense> CircleExpenses { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|