コード例 #1
0
        protected override void OnClone(Object o)
        {
            base.OnClone(o);
            StereotypedObject so = (StereotypedObject)o;

            so.Stereotype = this.Stereotype;
        }
コード例 #2
0
 public static new SqlProperty[] InitializeProperties(string keyName)
 {
     SqlProperty[] tempProperty = StereotypedObject.InitializeProperties(keyName);
     SqlProperty[] sqlProperty  = new SqlProperty[tempProperty.Length + 2];
     tempProperty.CopyTo(sqlProperty, 0);
     sqlProperty[sqlProperty.Length - 2]           = new SqlProperty("ParentId", "parent", System.Data.SqlDbType.Int, 0);
     sqlProperty[sqlProperty.Length - 2].FieldName = "_parent";
     sqlProperty[sqlProperty.Length - 1]           = new SqlProperty("Rank", "rank", System.Data.SqlDbType.Int, 0);
     return(sqlProperty);
 }
コード例 #3
0
        public static new PropertyInfo[] InitializePropertyInfos()
        {
            Type thisType = typeof(Entity);

            PropertyInfo[] tempProperty = StereotypedObject.InitializePropertyInfos();
            PropertyInfo[] newProperty  = new PropertyInfo[tempProperty.Length + 4];
            tempProperty.CopyTo(newProperty, 0);
            newProperty[newProperty.Length - 4] = thisType.GetProperty("Parent", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 3] = thisType.GetProperty("ParentId", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 2] = thisType.GetProperty("Index", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 1] = thisType.GetProperty("Rank", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            return(newProperty);
        }
コード例 #4
0
ファイル: Relation.cs プロジェクト: DersaProject/dersa
        public static new PropertyInfo[] InitializePropertyInfos()
        {
            Type thisType = typeof(Relation);

            PropertyInfo[] tempProperty = StereotypedObject.InitializePropertyInfos();
            PropertyInfo[] newProperty  = new PropertyInfo[tempProperty.Length + 5];
            tempProperty.CopyTo(newProperty, 0);
            newProperty[newProperty.Length - 5] = thisType.GetProperty("Type", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 4] = thisType.GetProperty("A", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 3] = thisType.GetProperty("AId", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 2] = thisType.GetProperty("B", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            newProperty[newProperty.Length - 1] = thisType.GetProperty("BId", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);
            return(newProperty);
        }