// ***********************************************************************
// Assembly : OpenAuth.App
// Author : yubaolee
// Created : 11-29-2015
//
// Last Modified By : yubaolee
// Last Modified On : 11-29-2015
// ***********************************************************************
//
// Copyright (c) www.cnblogs.com/yubaolee. All rights reserved.
//
// 角色模型视图
// ***********************************************************************
using System;
using Infrastructure;
using OpenAuth.Domain;
namespace OpenAuth.App.ViewModel
{
public partial class RoleVM
{
///
/// 用户ID
///
///
public int Id { get; set; }
///
/// 名称
///
///
public string Name { get; set; }
///
/// 所属部门节点语义ID
///
///
public string OrgCascadeId { get; set; }
///
/// 所属部门名称
///
///
public string OrgName { get; set; }
///
///是否属于某用户
///
public bool IsBelongUser { get; set; }
public static implicit operator RoleVM(Role role)
{
return role.MapTo();
}
public static implicit operator Role(RoleVM rolevm)
{
return rolevm.MapTo();
}
}
}