Urgent.News

What's breaking now, across thousands of outlets.

Tech

Core objects and the connected model — ADO.NET

Lesson 1 of 9 in the free ADO.NET — Connected & Disconnected Data Access course on DevLadder. Object Role SqlConnection Connection to the DB (pooled) SqlCommand SQL statement or stored procedure SqlParameter Typed parameter value — prevents SQL injection SqlDataReader Fast, forward-only, read-only stream of rows SqlDataAdapter Bridge between DB and DataSet DataSet / DataTable In-memory relational…

ADO.NET is Microsoft's core data access library for the .NET framework, comprising System.Data and provider packages. Its primary objects include Connection, Command, Parameter, DataReader, DataAdapter, DataSet, DataTable, and Transaction.

Connected architecture maintains an open connection while reading data through a DataReader, which is fast and memory-efficient but limited in flexibility. Disconnected architecture involves filling a DataSet or DataTable with data, allowing for navigation, editing, and later updates to the database using Update(). Modern applications generally prefer the connected model, often utilizing Dapper or Entity Framework (EF) for efficiency.

The difference between ExecuteReader, ExecuteScalar, and ExecuteNonQuery lies in their return values. ExecuteReader yields a DataReader for one or multiple result sets, ExecuteScalar returns the first column of the first row (like COUNT, SUM, or new identity via OUTPUT or SCOPE_IDENTITY()), and ExecuteNonQuery executes data manipulation statements such as INSERT, UPDATE, DELETE, and DDL, returning the number of affected rows.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

When do you lock the evaluation set?

At Landvex we're about to scale collection and annotation across several document families, mixed image and file inputs. The obvious failure mode is multiplying training material first, then…

  • Lock test set before expanding annotation efforts
  • Lock evaluation aspects like label schema and annotator instructions
  • Maintain strict boundaries to prevent test leakage

Singleton — Design Patterns (GoF + Enterprise) in C#

Lesson 1 of 18 in the free Design Patterns (GoF + Enterprise) in C# course on DevLadder. Ensure a class has one instance with a global access point.

  • Singleton ensures single instance with global access in C#
  • Implement sealed class, private constructor, Lazy<T> for thread safety
  • ASP.NET Core uses services.AddSingleton T for Singleton management

Nous Research unveils Arete-27B, a post-trained Qwen3.8-27B model that reinforces Western values, saying the underlying Chinese model's bias layer is shallow (Nous Research)

We post-trained over Alibaba's Qwen3.8-27B to reinforce Western values on a Chinese-trained model. We call this new model Arete-27B.

  • Nous Research unveils Arete-27B, a post-trained Qwen3.8-27B model
  • Model reinforces Western values, addresses Chinese model bias
  • Evaluation assesses factual recall and framing across 803 prompts

More from Sunday 8 November →