Generic predicate to implement searching by any string property
Is there possibility to apply searching by any string property of entity? I need to build predicate to use it in LINQ query to database. var stringPropertyNames = typeof(T) .GetProperties() .Where(pi...
View ArticleAnswer by mykhailovskyi for SelectNodes with XPath ignoring cases in node names
We may convert xml and our variables to lower case. string value = "aBc"; XmlNode xmlnode = xmldoc.SelectSingleNode(string.Format("/some/path/add[translate(@key, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',...
View ArticleOutOfMemoryException when send large file
In my asp.net project some files are located in the one of folders of the web site. Direct links are provided for users to download that. It works fine until size of file not big (few Mb) but...
View Articleasp.net route does not work
I have a next route: routes.MapRoute( "CatalogFilter", "{url}Catalog.aspx/{fltr}", new { controller = "Catalog", action = "Index", page = 1 } ); So link does not match that route:...
View ArticleAppend bunch of items into collection stored in Memcached
It's possible to store a list of items in Memcached but in my case I need to have an ability to append data to the existing collection that is already stored in Memcached. Since collection is too...
View ArticleEF Cannot insert explicit value for identity column in table 'X' when...
I have to migrate data from one database to another. Keys should be preserved. I'm using EF with an auto-generated .dbmx file. I've read many answers to similar problem and follow those suggestions: I...
View ArticleComment by mykhailovskyi on how to append a partial view to html table
could you do console.log and show what does model look like.
View Articlereact/jsx-no-bind warning even arrow function as const is passed
After starting new project with the latest stable React version (17.0.1) I noticed that in the strict mode I'm getting react/jsx-no-bind warn w\o using inline arrow function://...const cancelDeletion =...
View ArticleSorting by non-displayed column in pivot mode
I use ag-grid version 26.0.0 and I want to sort grid programatically in pivot mode by a column that is not displayed.gridApi.setSortModel is deprecated and anyway not working for me.While debugging how...
View Article