Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the EntitySetDataRow class
        /// </summary>
        /// <param name="parent">The parent of the row</param>
        /// <param name="entityType">The entity type of the row</param>
        protected internal EntitySetDataRow(EntitySetData parent, EntityType entityType)
        {
            this.Parent = parent;
            this.EntityType = entityType;
            this.Key = new EntityDataKey(parent.Parent.GetKeyPropertyNames(entityType));

            string[] nonKeyProperties;
            string[] dynamicPropertyPathList;
            this.BuildPropertyPaths(out nonKeyProperties, out dynamicPropertyPathList);
            this.data = new EntitySetDataRowData(this.Key, nonKeyProperties, dynamicPropertyPathList, entityType.FullName);
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the EntitySetDataRow class
        /// </summary>
        /// <param name="parent">The parent of the row</param>
        /// <param name="entityType">The entity type of the row</param>
        protected internal EntitySetDataRow(EntitySetData parent, EntityType entityType)
        {
            this.Parent     = parent;
            this.EntityType = entityType;
            this.Key        = new EntityDataKey(parent.Parent.GetKeyPropertyNames(entityType));

            string[] nonKeyProperties;
            string[] dynamicPropertyPathList;
            this.BuildPropertyPaths(out nonKeyProperties, out dynamicPropertyPathList);
            this.data = new EntitySetDataRowData(this.Key, nonKeyProperties, dynamicPropertyPathList, entityType.FullName);
        }