/// <summary>
        /// Gets the Assumed Entity by Assumption Attribute Type, casting it to the Entity Type.
        /// </summary>
        /// <typeparam name="TAssumption">The type of the attribute.</typeparam>
        /// <typeparam name="TEntity">The type of the entity.</typeparam>
        /// <param name="assumption">The assumption.</param>
        /// <returns></returns>
#pragma warning disable IDE0060 // Remove unused parameter
        public TEntity Get <TAssumption, TEntity>(IAssumptionEntityType <TAssumption, TEntity> assumption)
#pragma warning restore IDE0060 // Remove unused parameter
            where TAssumption : EntityDataAssumptionBaseAttribute, IAssumptionEntityType <TAssumption, TEntity>
            where TEntity : Entity
        {
            return(Get <TAssumption>().AsEntity <TEntity>());
        }
 /// <summary>
 /// Gets the assumed entity.
 /// </summary>
 /// <typeparam name="TAttribute">The type of the attribute.</typeparam>
 /// <typeparam name="TEntity">The type of the entity.</typeparam>
 /// <param name="assumption">The assumption.</param>
 /// <returns></returns>
 protected TEntity GetAssumedEntity <TAttribute, TEntity>(IAssumptionEntityType <TAttribute, TEntity> assumption)
     where TAttribute : EntityDataAssumptionBaseAttribute
     where TEntity : Entity
 {
     return(GetAssumedEntity <TAttribute, TEntity>());
 }
Beispiel #3
0
 /// <summary>
 /// Gets the Assumed Entity by Assumption Attribute Type, casting it to the Entity Type.
 /// </summary>
 /// <typeparam name="TAttribute">The type of the attribute.</typeparam>
 /// <typeparam name="TEntity">The type of the entity.</typeparam>
 /// <param name="assumption">The assumption.</param>
 /// <returns></returns>
 /// <exception cref="System.Exception"></exception>
 public TEntity Get <TAttribute, TEntity>(IAssumptionEntityType <TAttribute, TEntity> assumption) where TAttribute : EntityDataAssumptionBaseAttribute
     where TEntity : Entity
 {
     return(Get <TAttribute>().AsEntity <TEntity>());
 }