/// <summary> /// Inserts a list of entity and returns true if successful. /// </summary> /// <typeparam name="T">The type of entity to insert.</typeparam> /// <param name="entitiesToInsert">The IEnumerable list of Entity to insert.</param> /// <returns> /// True if records are inserted. /// </returns> public bool InsertList <T>(IEnumerable <T> entitiesToInsert) where T : class => ExecuteInternal( () => SharedConnection.InsertList(entitiesToInsert, _transaction, OneTimeCommandTimeout ?? CommandTimeout), true);