User.cs

26 lines | 532 B Blame History Raw Download
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.ComponentModel.DataAnnotations.Schema;

using Model.Entities.Base;

namespace Model.Entities.Users
{
    public class User : BaseEntity
    {
        //[Index]
        public string Login { set; get; }
        public string Password { set; get; }
        public bool IsActive { set; get; }


        [InverseProperty("Users")]
        public virtual IEnumerable<Group> Groups { set; get; }

    }
}