Browse by Tags

All Tags » LINQ (RSS)

SQL Timestamps

I was just reading a work around for timestamps with LINQ or WCF, and I must be stupid, but I just don't get it. In fact, ever since dotnet came out mapping timestamp to a byte array or SqlBinary, I never got why they did that. Timestamp is 8 bytes...
Posted by bill | with no comments
Filed under: , , ,

Stovell's Silverlight SyncLinq

Obviously Paul thinks just because he used one of my photos and then said nice things about my photos, that I'll probably link to his demo of synclinq in silverlight . ;)
Posted by bill | with no comments
Filed under:

Can't get no VB Action ?

Paul Stovell finally notices the lack of support for statement lambdas in VB9 . Unfortunately Vb9 only supports lambda expressions such as can be expressed in today's expression trees. .NET 4.0 will most probably include support for lambda statements...
Posted by bill | with no comments
Filed under: , , ,

Increment operators ?

Does VB need prefix and postfix increment and decrement operators ? Here's an example I posted today for a question on adding an index with LINQ: Sub Main() Dim values() As String = { "aaa" , "bbb" , "ccc" } Dim index...
Posted by bill | 5 comment(s)
Filed under: , , ,

More on videos from Lang.NET symposium

If you want to download the videos to watch later, or to happily play them faster, skip ahead etc, then you can grab the .wmv files instead of having to watch them in a browser in silverlight. I like to increase the play speed in parts and silverlight...
Posted by bill | 6 comment(s)
Filed under: , , , , ,

Add As Link

in VB 2008 you get a great intellisense experience when working with XML axis properties if you add the schema(s) to your project. You don't need to add the actual schema, you can just add a link. From the Project menu select Add Existing Item, browse...
Posted by bill
Filed under: , , ,

What's new in VB 2008

Visual Studio magazine's January On VB column, by your's truly, has a quick reference guide to what's new in VB 2008 . The guide includes links to earlier articles that provide more in depth information on specific features. Errata for my...
Posted by bill | with no comments
Filed under: , , , ,

More on XML Namespaces in VB....

A couple of weeks ago I wrote about XML Namespace issues in VB: one in particular was to do with namespace declarations being repeated in the output X ML. In those cases we only looked at common namespaces for the entire document. However the example...
Posted by bill | with no comments
Filed under: , , ,

Right tool for the job ?

I was catching up on reading some msdn blogs and stumbled across an entry from Yves Dolce. Yves was showing how to create a word document part including a graphic . Thing was, he was using C#, not VB. Here's an example : var graphic = new XElement...
Posted by bill | 3 comment(s)
Filed under: , , ,

LINQ to XSD --> VB can do better !

RJ posted an interesting entry about LINQ to XSD. The early LINQ to XSD bits that surfaced back in Orcas Beta 1 or thereabouts were basically an object layer of the underlying xml data. It was better than *just* an object model in that much of the XElement...
Posted by bill | 1 comment(s)
Filed under: , , , ,

Don't "p" on your XAttributes..

If you programmatically add attributes with namespaces to an XElement, when the XElement is written out it will give each attribute a namespace prefix and then define a xmlns for that prefix. The way XElement does this is first it examines the namespaces...
Posted by bill | with no comments
Filed under: , , , ,

Cleaning up your XML literal namespaces

If you use XML literals in your code, adding one to another: Dim e1 = <a:books></a:books> dim e2 = <a:book></a:book> e1.Add(e2) You will have the xmlns declaration repeated in each of the elements, when really it is only needed...
Posted by bill | 11 comment(s)
Filed under: , , , , ,
More Posts Next page »