WaYdotNET Web Blogs

Il blog di Carlo Bertini e qualcosa di .NET
posts - 57, comments - 2796, trackbacks - 925

My Links

News

Tag Cloud

Article Categories

Archives

Post Categories

Image Galleries

ASP.NET

Caxxate

Linq

There are 2 entries for the tag Linq
[LnqToSql] 2 articoli interessanti

Girovagando x il web sono andato a finire nel sito www.gridviewguy.com ed ho trovato questi due articoli molto interessanti http://www.gridviewguy.com/ArticleDetails.aspx?articleID=352_Creating_an_Online_Exam_Using_LINQ_to_Classes_Part_1   http://www.gridviewguy.com/ArticleDetails.aspx?articleID=373_Creating_an_Online_Exam_Using_LINQ_to_Classes_Part_2   Lo posto qui almeno me lo ricordo :D Technorati Tags: Linq,LinqToSql,Repository

posted @ martedì 12 febbraio 2008 11:07 | Feedback (60) |

Sending the LINQ To SQL log to log4net

Interessante codice x poter salvare i log di Linq to Sql con log4net: " DataContext Log Property can be used to print generated SQL query or command in the console window as shown below: db.Log = Console.Out; If you want to print the SQL query in DebugView or VS Output window you may use DebugWriter class(by Kris Vandermotten) .The usage of the class is pretty simple ... db.Log = new DebugWriter(); I wrote a small class that help you redirect DataContext messages to log4net .I've changed the DebugWriter and call it Log4NetWriter . The usage is still...

posted @ lunedì 11 febbraio 2008 17:25 | Feedback (71) |

Powered by:
Powered By Subtext Powered By ASP.NET