You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
943 B

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; }
}
}