Exemplo n.º 1
0
 public T this[int index]
 {
     get { return(QueryableSession.Load <T>(index)); }
     set { throw new NotImplementedException(); }
 }
Exemplo n.º 2
0
        /// <exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception>
        /// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IList`1"/> is read-only.</exception>
        public void RemoveAt(int index)
        {
            var entityToRemove = QueryableSession.Load <T>(index);

            QueryableSession.Delete(entityToRemove);
        }