Questions tagged as 'c#'

1
answer

N for N Entity Framework

Dear, I'm trying to make a N to N relationship in the Entity Framework for the tables described below. Atthemomentwhatishappeningisacyclicalredundancy,whereeverytimeIopenaGroup[x].GroupUser[x]atthispointIcaneithergobacktoGroupandfollowUser,a...
asked by 16.12.2016 / 01:54
1
answer

Universal Apps 8.1 on Windows 10

Does Windows 10 have backward compatibility with Universal Apps for Windows 8.1? That is, applications written in for Windows 8.1 run on Windows 10?     
asked by 19.12.2016 / 22:25
1
answer

Pass a lambda statement per parameter - C # - Entity

I have a method in which I need to pass only one select per parameter: public List<TEntity> GetAll(Expression<Func<TEntity, TEntity>> Select) { var query = Context.Set<TEntity>() .Where()...
asked by 07.11.2016 / 23:52
2
answers

Write only object relationships - Entity Framework [duplicate]

Using the .Net platform with the Entity Framework. I'm persisting an object of class A_B that relates to A and B as code below: public class A_B { private int Id; private string name; private A a; private B b; } public c...
asked by 15.05.2017 / 19:52
1
answer

EF relationship coming from Foxpro migration, with compound key

I am migrating a legacy VisualFox system in .Net where the tables were made all out of relationship, in ADO, without foreign key in relationships. Only by comparing a string of the name "Type" to differentiate whether the record in a Table, eg...
asked by 09.05.2017 / 19:20
1
answer

How to get a specific object from a Json / XML?

I need to get the content within <extract> to use in my application, but I can not. I have tried to create a class with the same objects, I tried to use the regex, but without success. I have the following XML : <api b...
asked by 07.09.2017 / 00:04
1
answer

Retrieve image via path and display

I created the following method to save an image to the database public ActionResult enviaArquivo(UsurioViewModel arq) { try { string nomeArquivo =""; if (arq.Arquivo != null && arq.Arquivo.ContentLe...
asked by 08.05.2017 / 03:06
1
answer

C # MVC - Error after publish in VS015. 404 Not Found

I did a "Publish" with VS2015 of type MVC Web, but in "Publish Method" I put "File System". The problem is that I published in IIS and runs the views, but when I click the buttons it does not find the methods. As if I had no Controller. What do...
asked by 12.05.2017 / 23:41
1
answer

Remove creation of serial column EntityFramework + Npgsql

Hello, I'm creating an application using Fluent API + Entityframework. However in my domain classes when determining that a property is PK it automatically defines it as serial, I would not like to get this behavior because it will automatically...
asked by 25.10.2016 / 03:30
1
answer

Inaccessible Error logs: Security

Good afternoon, recently I've been getting the following error    The source was not found, but some or all event logs could not be   searched. To create the source, you need permission to read all event   logs to make sure that the new sourc...
asked by 26.10.2016 / 18:36