Category: .NET
-
Dependency injection choice
For a personal pet project I have needed a DI framework . It relates to WebApi – I need to switch the provider for web api between a console and web – mostly authentication / logging different. Some years ago was only StructureMap – but now there are a lot. So I started to investigate…
-
SameId – skip
In the previous post I have show how two users can see each other if they are editing the same product ( in my example,product id 5) But not in all cases the users should be notified about each other – like in,let’s say,view product Id 5. In this case we have an attribute to…
-
Same object edited by 2 users–proactively notifying users
This is a practical example about how two users that comes on the same page will be notified one about other( after an idea of Adrian Petcu) . See the picture : With the NuGet package you can install in your application in this steps: To run : 1. install package from Nuget 2. in…
-
.tt files to maintain assembly version in sync
Let’s suppose you have a medium-big application and you have several dll-assemblies-component that the main application references( DAL,BLL). You have several deployments of the application at clients and,when a client,you must find each version of each assembly deployed. I have developed a simple .tt file to ensure that every component that you compile have the…
-
MVC Help View Razor v2
I have added to MVC Help View Razor the possibility to generate also .js files( was a suggestion from Alex Peta ) The code is on github Enjoy!
-
Attach to IIS and Stop Build– packages for better VS2012
If you work in VS2012 and want to debug your site in IIS with just CTRL+SHIFT+F1,then please see http://visualstudiogallery.msdn.microsoft.com/928617dc-d747-4577-bd19-8514d7efa8a7 If you work in VS2012 and want to stop build for other projects right after an error for a project,then please see http://visualstudiogallery.msdn.microsoft.com/a20bb171-0cab-453e-a64b-15197250f81f The source are found under https://github.com/ignatandrei ( For VS2010 I have 2…
-
MVC,JsonResult,DateTime and TimeZone
The jsonresult of date time is serializing to the string /Date and some integer value starting with 1970 . The problem is that the browser interprets this value accordingly to the LOCAL TimeZone – and thus the same date is going to be interpreted with a difference. I was thinking that I can adjust from…
-
How to become a more skilled developer in .NET
I am a good developer in .NET . However,I will not be so good,if there will be not my tools – that allows me to save time and make projects faster. I have published the tools that I work with in 2012 . If you are interested in fast training to those tools,I am ready…