Format:
Recent snippets for: dvdstelt
// search for the most "deepest" inner exception string mostInnerException = ""; Exception innerException = ex.InnerException; if (innerException != null) while (innerException.InnerException != null) innerException = innerException.InnerException; if (innerException != null) mostInnerException = innerException.ToString(); // init log info
288 Views
no comments
// Take into account exceptions might occur try { // some code here that's less funny ;-) } // Process exceptions catch (Exception ex) { }
260 Views
1 comments
public interface IRepository<TEntity> where TEntity : EntityObject { TEntity GetById(int id); IQueryable<TEntity> GetAll(); IQueryable<TEntity> Query(); IRepository<TEntity> With(Expression<Func<TEntity, object>> path); IRepository<TEntity> With<T>(Expression<Func<T, object>> path); }
581 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
