Esempio n. 1
0
        /// <summary>
        ///     Clones this instance.
        /// </summary>
        /// <typeparam name="T">The type of result to return.</typeparam>
        /// <param name="entity">The entity to clone.</param>
        /// <param name="cloneOption">The option.</param>
        /// <returns>
        ///     A cloned instance of the current entity.
        /// </returns>
        public static T Clone <T>(this IEntity entity, CloneOption cloneOption)
            where T : class, IEntity
        {
            if (entity == null)
            {
                throw new ArgumentNullException("entity");
            }

            return(entity.Clone(cloneOption).As <T>());
        }
Esempio n. 2
0
 T IEntity.Clone <T>(CloneOption cloneOption)
 {
     throw new NotImplementedException( );
 }
Esempio n. 3
0
 public IEntity Clone(CloneOption cloneOption)
 {
     return(_entity.Clone(cloneOption));
 }
Esempio n. 4
0
 public T Clone <T>(CloneOption cloneOption) where T : class, IEntity
 {
     return(_entity.Clone <T>(cloneOption));
 }
Esempio n. 5
0
 /// <summary>
 ///     Clones this instance.
 /// </summary>
 /// <typeparam name="T">The expected type of the cloned entity.</typeparam>
 /// <param name="cloneOption">The option.</param>
 /// <returns>
 ///     A cloned instance of the current entity.
 /// </returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public T Clone <T>(CloneOption cloneOption) where T : class, IEntity
 {
     throw new NotImplementedException( );
 }
Esempio n. 6
0
 /// <summary>
 ///     Clones this instance.
 /// </summary>
 /// <param name="cloneOption">The option.</param>
 /// <returns>
 ///     An in memory clone of the current entity.
 /// </returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public IEntity Clone(CloneOption cloneOption)
 {
     throw new NotImplementedException( );
 }
Esempio n. 7
0
 public T Clone <T>(CloneOption cloneOption) where T : class, IEntity
 {
     throw new NotSupportedException( );
 }
Esempio n. 8
0
 public IEntity Clone(CloneOption cloneOption)
 {
     throw new NotSupportedException( );
 }