Comment by David Silva-Barrera on Best way to store multiple enums in database
I don't see it as Magic Number, you are storing the unique int identifier of the enum value in the database, if this is wrong then so is storing the primary key of a table in another table as foreign...
View ArticleComment by David Silva-Barrera on Best way to store multiple enums in database
Dear JDB, please read the question again. Notice he is specific about using the Enum. He wants to use a simple Column to store the values, he knows he have multiple values (he mentioned comma possible...
View ArticleComment by David Silva-Barrera on Will someone please explain RESULT_FIRST_USER
Please Andrew, use @KatedralPillon comment to complete your answer, because the question points to the autor knowing what you just said but the real part is missing. With KatedralPillon's comment the...
View ArticleComment by David Silva-Barrera on The cast to value type 'Double' failed...
There are no 2 queries but only one. The Where method does not actually make a query but prepares one and the call to Any makes the real db-query. Any way I prefer the @Jitendra Pancholi solution,...
View ArticleComment by David Silva-Barrera on Need an ASP.NET MVC long running process...
I made it work, but it waits for return result; in SomeTaskAsync before it makes all the calls to SomeTaskProgress. I can see the flow only by using with breakpoints, cause in the Browser all changes...
View ArticleComment by David Silva-Barrera on How to get the clicked ListView cell in...
Possible duplicate of Handle click on a sub-item of ListView
View ArticleComment by David Silva-Barrera on How to pass data using submit() in javascript?
The idea was right, but the code didn't work. The way for modifying the value was the problem. It worked for me (with jQuery): $('input[name="variable"]').val(true);
View ArticleComment by David Silva-Barrera on ES2015 import doesn't work (even at...
You have to be careful because it is affected by the use of "file:///" protocol.
View ArticleComment by David Silva-Barrera on Show/Hide the console window of a C#...
The trick was awesome to know about, it works nice and solved my problem (hard-hiding the console). Nevertheless let notice it is not the answer for the question.
View ArticleComment by David Silva-Barrera on C#: How to make sure a settings variable...
For me: CommonSettings.Default.Context.ContainsKey(str) (VS 2019, .NET4.5)
View ArticleComment by David Silva-Barrera on Refresh listview so that it shows the...
WinForm ListView does not have ScrollIntoView(ListViewItem x)
View ArticleComment by David Silva-Barrera on Open DateTimePicker C# control...
Works nicely, simple, clear!!!! Thanks
View ArticleComment by David Silva-Barrera on Why does my RSS feed duplicate some entries?
The pubDate also influences the RSS aggregator. An item with the same guid but a different pubDate will be treated as a change and gets repeated sometimes.
View ArticleComment by David Silva-Barrera on OutOfMemoryException in wcf
The solution in this case was the configuration of the WindowsSecuredbasicHttpBinding; defining max values override default values.
View ArticleAnswer by David Silva-Barrera for Change value of R.string programmatically
Maybe you want to "modify" the string.xml so when it is required by the activity again it uses the new value, for example to keep a new dynamic title after screen rotation. First, you can't modify the...
View Article.Net Entity Framework scaffolding for inherited classes
I'm working visual studio 2010, mvc 4. I'm applying a model first approach and I have a hierarchy of some classes. VS scaffolding works well with all other classes even base class for hierarchy, but...
View ArticleAnswer by David Silva-Barrera for .Net Entity Framework scaffolding for...
By now I found and insteresting solution but I'm still looking for something less tricky. Let's me explain:EDMX only adds base class to ModelContainer: public DbSet Personas { get; set; }With it its...
View ArticleAnswer by David Silva-Barrera for How to convert DataGridView Column from...
You can use the function typeof(). Like this:DataGridView1.Columns(4).ValueType = typeof(Decimal);
View ArticleAnswer by David Silva-Barrera for Wpf dragdrop, how to visually reject the...
You didn't say if you use the DragOver even. Maybe you're setting e.Effect = DragDropEffects.All; in this even and it will be fired repeatedly after you enter the target control instead of DragEnter...
View ArticleAnswer by David Silva-Barrera for Entity Framework 6 Mixed Stored Procedure...
I was looking for that mixture too. DbSet has a method called SqlQuery where you can place your custom SELECT queries (with some warnings). You can call Store Procedures too.Take a look at this:...
View Article