Tag: .NET 4.0
-
Backup application for Windows Azure
I have written( with Vunvulea Radu and Catalin Gheorghiu) a backup application for Azure. It is made with MVC + Azure Tables. It was made initially for a contest,but I intend to work further and progress . You can play at http://backupapp.cloudapp.net/ The code source is on http://myazurebackup.codeplex.com/ – and you can add also your…
-
mvc windows authentication
If you want to use Windows Authentication with MVC : Step 1 : In web.config,put authentication mode windows Step 2 : in IIS disable anonymous Step 3 : go to Views\Shared\LogOnUserControl.ascx and remove logoff / logon links.
-
Optimizing EF4 and EDMGen2
Just reading (from Adrian Florea links ) how the EF4 could be optimized : http://www.codeproject.com/KB/database/PerfEntityFramework.aspx First modification is to “Pre-generated Your View”. For this you must have .ssdl,.csdl,and .msl files – so you change the “Metadata Artifact Processing property to: Copy to Output Directory.”. Then you process the .ssdl,.csdl,and .msl with edmgen in order to…
-
EF,automatic history of table and T4 files (TT files)
Usually the data of the tables should be tracking for who modified it. Think about inserting/updating/deleting an employee : you must know who did those actions and when. So you create another table,identically as structure,and you add another 3 fields,such as [ModifiedDate](when),[ModifiedBy](who),[ModifiedType] (what : insert,update,delete). There are several methods to do it : from database…
-
Caching in .NET
In every application you have some data that is more read-more,write-once or twice. For example you can have the list of Cities of a country,the list of Countries of the world or list of exchange currency. This data is modified rarely. Also,you can have data that is not very sensitive to be real-time,such as the…