重新启用IManageProvider,弱化Membership,编译通过,未测试
Stone authored at 2015-04-06 00:05:01
0.99 KiB
X
using System;
using System.Collections.Generic;

namespace XCode.Membership
{
    /// <summary>用户接口</summary>
    public interface IManageUser
    {
        /// <summary>唯一编号</summary>
        Object Uid { get; }

        /// <summary>数字编号。如果唯一编号不是数字,请抛出异常</summary>
        Int32 ID { get; }

        /// <summary>账号</summary>
        String Name { get; set; }

        /// <summary>密码</summary>
        String Password { get; set; }

        /// <summary>是否管理员</summary>
        Boolean IsAdmin { get; set; }

        /// <summary>是否启用</summary>
        Boolean Enable { get; set; }

        ///// <summary>属性集合</summary>
        //IDictionary<String, Object> Properties { get; }
        
        /// <summary>获取/设置 字段值。</summary>
        /// <param name="name">字段名</param>
        /// <returns></returns>
        Object this[String name] { get; set; }
    }
}