using Forks.EnterpriseServices.DomainObjects2;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ButcherFactory.BO
|
|
{
|
|
[MapToTable("WpfUser")]
|
|
public class WpfUser
|
|
{
|
|
public long ID { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
|
|
[DbColumn(AllowNull = false, DbType = SqlDbType.Binary, Length = 16)]
|
|
public byte[] Password { get; set; }
|
|
public string Role { get; set; }
|
|
|
|
List<string> _roleList;
|
|
[NonDmoProperty]
|
|
public List<string> RoleList
|
|
{
|
|
get
|
|
{
|
|
if (_roleList == null)
|
|
{
|
|
_roleList = new List<string>();
|
|
if (!string.IsNullOrEmpty(Role))
|
|
_roleList.AddRange(Role.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries));
|
|
}
|
|
return _roleList;
|
|
}
|
|
}
|
|
|
|
[NonDmoProperty]
|
|
public bool Login { get; set; }
|
|
}
|
|
}
|