The missing LINQ

Pieter van der Westhuizen, a professional freelance web & mobile developer and founder of Coalition Software.
Search for a command to run...

Pieter van der Westhuizen, a professional freelance web & mobile developer and founder of Coalition Software.
A recent requirement came up for configurable dynamic forms in a mobile application. There are a few dynamic form packages for Flutter, but I wanted a bit more control over the schema and behavior of the form. Here follows my attempt at creating dyna...

If you've ever written a mobile app with Flutter that integrates with an API, then you'll know that there are a lot of model objects that get passed between the app and the API. JSON Serialization in Flutter can also take a fair amount of boilerplate...

Back in May 2020, Microsoft announced a new feature for Azure Blob Storage called Blob Index. Essentially, this enables you to add key/value tags to your Blob objects and be able to query said Blob objects without having to use a separate service lik...

In my last post, "Using AWS Cognito with Xamarin Forms", I showed how to authenticate with Amazon Cognito using Xamarin Forms and the Xamarin.Essentials Web Authenticator. In this post, we'll go through the process of using the AWS Cognito Hosted UI ...

In this post, I'll show you how to quickly and easily set up user authentication for your Xamarin Forms app using Amazon Cognito. AWS Cognito is a user identity management solution by Amazon. It is a really easy way to add authentication to your appl...

I’ve been playing around with LINQ, in order to start moving toward CSLA version 3.5, which makes extensive use of LINQ.
So far, it’s been a fairly pleasant trip. The OR-Mapper included in VS 2008 links (linqs?) your object nicely together and it’s pretty straight forward to get started. Here’s a quick rundown of how to use it:
First download the Northwind Sample db here. Start a new Windows Application project and add a new connection to the db using the server explorer.
Next, add a new LINQ to SQL classes item to your project and call it Northwind.dbml. Drag the Customer table onto the designer, followed by the Orders table. Tada! It automatically adds an association, based on the relationships in your database, between the Customer and Orders tables/objects.
Everything happens behind the scenes, so if you right-click on the customer object and select View Code, it’ll take you to a partial class of Customer. In here you can add some custom properties and methods. All the CRUD operations are handled for you.
It’s all a still a bit "Black Box" for me, but the concept is excellent! If you start looking at Rocky’s implementation of it in CSLA 3.5, you’ll realize it’s pretty cool stuff.
I’ll post a couple of tutorials in the coming weeks about CSLA 3.5 as I figure stuff out. Check back soon!