Today i had a problem with mapped network drives for specific users. The windows explorer showed all exist connections but when i openned some applications (For example: P80 – Automation application for HPC), i couldn’t see them.
Without going into too much detail, there is a register that enables the display of these drives in the applications.
To solve, you need to modify the registry.
1. Open regedit
2. HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> Policies -> System
3. On the right, you will see:
4. click on empty space, ADD DWORD(32bit), then name it “EnableLinkedConnections”. Double click it and set the data to 1.
5. Reboot and you will see the mapped drives in your applications.
This worked for me.
This error generally occur when you change database (For example changing the primary key) and after it update project entity model.
You can see that all columns in model table were changed like primary key.
To solve the problem, you can select the columns that are not the primary key and change the field “Entity Key” to false.
Or in the properties
Transactions are to locked the database while your system perform many inputs and it can not be edit¹ at this moment, but if one error occur, you can do a rollback “Ctrl+z”.
For more details, you can found here.
The basic Structure
1- Only the table in use is locked;
If you are creating a DLL using #EntityFramework (EF Designer from database) be careful of your Connection String.
#Entity creates the connection string in DLL and it will compile perfectly. but when you import the DLL in a project never forget to reference the same connection string in project’s “App.config” file too, because at system startup, the DLL’s “App.config” file will be replaced by project’s “App.config” file.
Propriedades do Entity Framework
Entidades de uma aplicação que utiliza o Entity Framework, são administradas por um objeto do tipo DbContext. Esse objeto é responsável pelas inserção, remoção, alteração e consulta na Database. Ao definir seu método de contexto, faça herança do DBContext. Veja o exemplo:
public class MyContext : DbContext