Category: HowTo

  • Entity Framework 6 Record and play use : Unit Testing ( part 2 of 5)

      Part 1 : What is EF record and play : http://msprogrammer.serviciipeweb.ro/2014/11/29/entity-framework-6-record-and-play-1-of-5/  Part 2: EF Record and play use: Testing : http://msprogrammer.serviciipeweb.ro/2014/12/08/entity-framework-6-record-and-play-use-unit-testing-part-2-of-5/ Part 3: EF Record and play use: Make demo: http://msprogrammer.serviciipeweb.ro/2014/12/14/entity-framework-6-record-and-play-use-making-demos-part-3-of-5/  Part 4: EF Record and play use: Record user Sql when a bug occurs: http://msprogrammer.serviciipeweb.ro/2014/12/26/ef-record-and-play-use-recording-user-sql-when-a-bug-occurred-part-4-of-5/ Part 5: EF record and play: conclusions: http://msprogrammer.serviciipeweb.ro/2015/01/05/ef-record-and-play-conclusions/…

  • Entity Framework 6 Record and play – 1 of 5

      Part 1 : What is EF record and play : http://msprogrammer.serviciipeweb.ro/2014/11/29/entity-framework-6-record-and-play-1-of-5/  Part 2: EF Record and play use: Testing : http://msprogrammer.serviciipeweb.ro/2014/12/08/entity-framework-6-record-and-play-use-unit-testing-part-2-of-5/ Part 3: EF Record and play use: Make demo: http://msprogrammer.serviciipeweb.ro/2014/12/14/entity-framework-6-record-and-play-use-making-demos-part-3-of-5/  Part 4: EF Record and play use: Record user Sql when a bug occurs: http://msprogrammer.serviciipeweb.ro/2014/12/26/ef-record-and-play-use-recording-user-sql-when-a-bug-occurred-part-4-of-5/ Part 5: EF record and play: conclusions: http://msprogrammer.serviciipeweb.ro/2015/01/05/ef-record-and-play-conclusions/…

  • Javascript MVVM and ASP.NET MVC

    TL;DR; The purpose of this article is to show is how to transmit data to edit( create,update,delete) from a MVVM array to an ASP.NET MVC action in order for the action to bind to an IEnumerable/Array/List of objects. We will make also a javascript function that can be re-use across multiple MVVM frameworks to transmit…

  • MVC Export List of objects to Excel-Word-PDF-CSV-HTML-XML–Razor style

    This is the second part of the demo of the Exporter  in action  – this time in MVC . It is a little more complicated,because you need to show to the exporter the full path where to put the generated file string filePathExport = Server.MapPath(“~/exports/a” + ExportBase.GetFileExtension((ExportToFormat)id)); All others are the same easy stuff  -add…

  • 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…

  • MVC Help View Razor

    My passion for .tt files is great . T4MVC is the best example of what you can achieve with .tt files in MVC .  Now,the problem: For each project you have a help file must be created. I mostly work with ASP.NET MVC projects – so I frequently have this problem. I have then created…

  • 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!

  • Microformats,Outlook calendar and MVC5

    I have a passion for both 3:Microformats,Outlook calendar and MVC 4.   So I decided to put together an MVC implementation – first,for calendar. Source code at https://github.com/ignatandrei/MVC4Microformats   See online at http://mvc4microformats.apphb.com/Home/Calendar  Next week a NUGET download. After that,a VCard implementation .

  • 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…