Posts by Filipe Santiago • 341 points
8 posts
-
1
votes2
answers1109
viewsA: Json Web Api with error
When you work with EF it is never a good practice to return a "Iqueryable". He is trying to serialize a Dynimicproxie that is generated by EF for query execution. I believe that the problem is…
-
1
votes2
answers120
viewsA: Enumeration class in the Repository Pattern
If you are using the Entity Framework it automatically identifies, that is, saved as int in the database and creates the object with the enumeration. What I want you to do is exchange this…
-
4
votes2
answers778
viewsA: How do I change the content of a Usercontrol using a button in another Usercontrol?
Since you already have an answer using code-Behind, I will give a solution using MVVM. The property you want to fill is called "content". We must connect it to a Viewmodel property that will…
-
4
votes3
answers962
viewsA: Printing a character in place of a number
A string is nothing more than a string, in C, it means an array of 'chars' basically and in the end is added the character ' 0'. Note that it scans the input and puts it in an array of 50-position…
-
1
votes1
answer15
viewsA: Validating event with `?`operator
It is called "Null-Conditional Operator". More information here: https://msdn.microsoft.com/en-us/library/dn986595.aspx…
c#answered Filipe Santiago 341 -
1
votes1
answer127
viewsA: Use Droid project class in PCL Xamarin Forms
The most correct approach to this operation is to use Dependency Injection. The PCL should not have reference to the specific projects of each platform, to give a visibility of the same for the PCL…
-
1
votes1
answer198
viewsA: N for N Entity Framework
This is a normal behavior, given what is happening in the navigation properties (which are references to objects). EF understands that navigation is bidirectional (user -> group / group ->…
-
2
votes1
answer144
viewsA: MVVM and Binding for different classes
By default, when you create a visual element (Window, page, usercontrol) two connected files are created. One is . xaml and the other is .cs. ". Cs" is the so-called 'code-Behind' which is nothing…