add new project
This commit is contained in:
30
MySolution/ToDoApp/Model/Item.cs
Normal file
30
MySolution/ToDoApp/Model/Item.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ToDoApp.Model
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public int UserId { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public DateTime DueDate { get; set; }
|
||||
|
||||
public bool IsCompleted { get; set; }
|
||||
|
||||
public DateTime CreateDate { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user