First Initial
This commit is contained in:
24
EF/_BaseEntity2.cs
Normal file
24
EF/_BaseEntity2.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TTSW.EF
|
||||
{
|
||||
public class BaseEntity2<T>: IBaseEntity2<T>
|
||||
{
|
||||
public BaseEntity2()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public T id { get; set; }
|
||||
|
||||
public DateTime created { get; set; }
|
||||
public DateTime updated { get; set; }
|
||||
public bool isActive { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user