Salakhetdinov Shamil
mcp2004 at mail.ru
Tue Jun 19 12:34:10 CDT 2012
Hi Gustav -- I have got purchased a LINQPad 4.42.01 Premium edition to use NuGet packages (still to learn how). >From within LINQPad 4.42.01 you can run the following code snippet types: C# Expression C# Statements C# Program VB Expression VB Statements VB Program F# Expression F# Program and do a lot more things, which I, personally, still to discover how to do and to apply for C# programming mastering and for the real life .NET development.. Try e.g. this Util.Image ("http://chart.apis.google.com/chart?cht=p3&chd=s:Uf9a&chs=350x140&chl=January|February|March|April") and you'll get a sample chart image, which you can right click and copy and paste somewhere in your docs... Or you can set a connection to an oData data source and query it via LINQ, e.g.: Set connection to http://data.stackexchange.com/stackoverflow/atom and then run LINQ query in LINQPad: Users .OrderByDescending(n => n.Reputation) .Take (10) .Select(n => new {n.Reputation, n.DisplayName, n.WebsiteUrl}) returns the top 10 (by Reputation) StackOverflow users... > As for the EF code generation: Why not ask the author, Joseph Albahari? As I understand it, he will be happy to answer. OK, but first I will try to read carefully through this web page: http://www.linqpad.net/HowLINQPadWorks.aspx it may happen I will find the answer on referred from that web page other web pages... Thank you. -- Shamil Tue, 19 Jun 2012 18:51:47 +0200 от "Gustav Brock" <gustav at cactus.dk>: > Hi Shamil > > Yes, I do have a "Pro" license for LINQPad but I had no idea you could use it for this level of code. I've only used it to find out LINQ queries. > > I've read some free chapters from the previous book - very good - but didn't buy the book. Perhaps it is time now to spend some money. > > As for the EF code generation: Why not ask the author, Joseph Albahari? As I understand it, he will be happy to answer. > > /gustav > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 19-06-12 18:27 >>> > Hi Gustav -- > > Yes, I have run this code in LINQPad 4.42.1, I have got purchased a Premium version to have Intellisense etc. > LINQPad is a great C# learning/mastering/"code snippeting"/experimenting tool. > But you know that LINQPad is a great tool AFAIK :) > > I have put .Sleep(1000) in Test1 class Setup method to show that in this case Test2 runs first and in parallel - did you mean that? > > > That looks clever and tight. > Thank you, just a bit maybe - when I'm reading "C# 4.0 in a Nutshell" by Joseph and Ben Albahari I'm feeling myself as a 1st grade pupil - the concepts and techniques of modern C# (functional) parallel programming they present in many parts of heir book are so advanced... > > BTW, I still can't get how LINQPad dynamically builds ADO.NET EF model/assembly from given MS SQL database connection - have you seen/read anywhere how it's done, what (third party) .NET classlibs they use? > > Thank you. > > -- Shamil > > Tue, 19 Jun 2012 18:18:13 +0200 от "Gustav Brock" <gustav at cactus.dk>: > > Hi Shamil > > > > That looks clever and tight. > > I guess if you didn't have the Sleep(1000) method, the code would run with one timestamp only. > > > > But do you really run this from within LINQPad? > > > > /gustav > > > > > > >>> Salakhetdinov Shamil <mcp2004 at mail.ru> 19-06-12 17:57 >>> > > Hi All - > > > > I wanted to share some code snippets I'm getting written here while mastering C# programming using LINQPad. > > Presented here code snippet will instantiate and run in parallel two sample test classes resulting in an output as the following: > > > > 19.06.2012 19:49:42: Test1 instantiated. > > 19.06.2012 19:49:42: Test2 instantiated. > > 19.06.2012 19:49:42: Test1 setup. > > 19.06.2012 19:49:42: Test2 setup. > > 19.06.2012 19:49:43: Test2 run started... > > 19.06.2012 19:49:44: Test1 run started... > > 19.06.2012 19:49:44: Test2 run completed. > > 19.06.2012 19:49:44: Test2 tear down. > > 19.06.2012 19:49:45: Test1 run completed. > > 19.06.2012 19:49:45: Test1 tear down. > > > > All and any comments & remarks are very welcome! > > > > Thank you. > > > > -- Shamil > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > >