zoukankan      html  css  js  c++  java
  • 【Wonder原创】NHibernate映射文件范例

    1、递归菜单

    XML:

    代码

    CS:

    代码
    1 sing System;
    2  using System.Collections.Generic;
    3  using System.Linq;
    4  using System.Text;
    5  using Iesi.Collections.Generic;
    6
    7 namespace Domain
    8 {
    9 public class RCM
    10 {
    11 public virtual string CMID { get; set; }
    12
    13 public virtual int Version { get; set; }
    14
    15 public virtual string CMNAME { get; set; }
    16 public virtual string CMURL { get; set; }
    17 public virtual int CMORDER { get; set; }
    18 //public virtual string CMPARENT { get; set; }
    19 public virtual string CMTARGET { get; set; }
    20 public virtual int CMSTATUS { get; set; }
    21
    22 //多对一关系:ChildID属于一个CMID
    23 public virtual RCM Parent { get; set; }
    24
    25 //一对多关系:CMID 有一个或多个 ChildID
    26 public virtual ISet<RCM> Childs { get; set; }
    27
    28 public RCM()
    29 {
    30 CMURL = "#";
    31 CMORDER = 0;
    32 CMTARGET = "_self";
    33 CMSTATUS = 1;
    34 Childs = new HashedSet<RCM>();
    35 }
    36 }
    37 }
  • 相关阅读:
    click event not triggered on bootstrap modal
    how to use datatables editor
    how to create modals with Bootstrap
    WebSite
    Spring Security OAuth 2开发者指南译
    security和oauth2.0的整合
    Spring Boot遇到的某些问题
    linux主机名莫名其妙变成了bogon,并解决修改为localhost
    Getway网关管理ZUUL
    feign中的hytrix和turbin配置
  • 原文地址:https://www.cnblogs.com/wonder315/p/1837512.html
Copyright © 2011-2022 走看看