/// <summary>
        /// Factory method to construct an instance of <see cref="WingsContext" />.
        /// </summary>
        /// <returns>
        /// An instance of <see cref="WingsContext" />.
        /// </returns>
        public static WingsContext GetInstance()
        {
            WingsContext instance = null;

            if (!string.IsNullOrWhiteSpace(ConnectionString))
            {
                instance = new WingsContext(ConnectionString);
            }
            else
            {
                instance = new WingsContext();
            }

            instance.Database.CommandTimeout = 40000;
            return(instance);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository{TEntity}"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public Repository(WingsContext context)
 {
     _context = context;
 }