Posts by Yan Andrey • 75 points
4 posts
-
2
votes1
answer52
viewsQ: Best way to query the database using LINQ and Entity Framework
Hello! I need to make a query in the database, the scenario is as follows: I receive email and from it I seek the id user. About the bank, there is the table Contact, which has Nxn relationship with…
-
1
votes0
answers39
viewsQ: Is it possible for an entity to have 2 N-to-N relationships using Entity Framework?
I have 2 models: Cliente and Empresa, which need to have registered addresses. I created another template called Endereço to make the relationships N for N, in which it stayed this way: public class…
-
1
votes2
answers73
viewsQ: Error in a function that returns an AND of two variables in python
I made a function in Python that in theory should return a and of each element of two variables, however the result is not being expected. The answer would be [0, 1, 0, 0, 1, 1, 0, 0], but is…
-
2
votes1
answer227
viewsQ: how to return an integer in python? - Python
I’m new to python and I have a question about how to return 0 or 1 instead of True and False. Even putting int the output is being "[False, True, False, True, False, False, True, False]" a="101001"…
pythonasked Yan Andrey 75