using Forks.EnterpriseServices.DomainObjects2;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace ButcherManage.BO
|
|
{
|
|
[MapToTable("Butcher_Worker")]
|
|
public class Worker : BaseInfo
|
|
{
|
|
public string Code { get; set; }
|
|
|
|
[DbColumn(AllowNull = false, DbType = SqlDbType.Binary, Length = 16)]
|
|
public byte[] Password { get; set; }
|
|
public string Role { get; set; }
|
|
|
|
[NonDmoProperty]
|
|
public IEnumerable<short> RoleList
|
|
{
|
|
get { return Role.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(x => short.Parse(x)); }
|
|
}
|
|
}
|
|
}
|