// <summary>
        // Creates a <see cref="DbComplexPropertyEntry" /> from information in the given <see cref="InternalPropertyEntry" />.
        // Use this method in preference to the constructor since it may potentially create a subclass depending on
        // the type of member represented by the InternalCollectionEntry instance.
        // </summary>
        // <param name="internalPropertyEntry"> The internal property entry. </param>
        // <returns> The new entry. </returns>
        internal new static DbComplexPropertyEntry <TEntity, TComplexProperty> Create(
            InternalPropertyEntry internalPropertyEntry)
        {
            DebugCheck.NotNull(internalPropertyEntry);

            return
                ((DbComplexPropertyEntry <TEntity, TComplexProperty>)
                 internalPropertyEntry.CreateDbMemberEntry <TEntity, TComplexProperty>());
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Creates a <see cref="DbPropertyEntry" /> from information in the given <see cref="InternalPropertyEntry" />.
        ///     Use this method in preference to the constructor since it may potentially create a subclass depending on
        ///     the type of member represented by the InternalCollectionEntry instance.
        /// </summary>
        /// <param name="internalPropertyEntry"> The internal property entry. </param>
        /// <returns> The new entry. </returns>
        internal static DbPropertyEntry Create(InternalPropertyEntry internalPropertyEntry)
        {
            DebugCheck.NotNull(internalPropertyEntry);

            return((DbPropertyEntry)internalPropertyEntry.CreateDbMemberEntry());
        }
Exemplo n.º 3
0
 internal static DbComplexPropertyEntry Create(
     InternalPropertyEntry internalPropertyEntry)
 {
     return((DbComplexPropertyEntry)internalPropertyEntry.CreateDbMemberEntry());
 }
Exemplo n.º 4
0
 internal static DbComplexPropertyEntry <TEntity, TComplexProperty> Create(
     InternalPropertyEntry internalPropertyEntry)
 {
     return((DbComplexPropertyEntry <TEntity, TComplexProperty>)internalPropertyEntry.CreateDbMemberEntry <TEntity, TComplexProperty>());
 }