@@ -5,7 +5,7 @@ C#/VB.NET database utility to comfortly write pure Microsoft SQL/MySQL queries a
55``` vb
66' create active record class extending DbSharp.Model:
77Public Class Dealer
8- Inherits Database .Model
8+ Inherits DbSharp .Model
99 Public Id As Int32?
1010 Public Property Firstname As String
1111 Public Property Secondname As String
@@ -35,8 +35,8 @@ Dim dct As Dictionary(Of Int32, Dealer) = Command.Prepare(
3535```
3636
3737``` cs
38- ' create active record class extending DbSharp.Model:
39- public class Dealer : Database .Model {
38+ // create active record class extending DbSharp.Model:
39+ public class Dealer : DbSharp .Model {
4040 public int ? Id ;
4141 public string Firstname { get ; set ; }
4242 public string Secondname { get ; set ; }
@@ -49,16 +49,16 @@ Dealer instance = Command.Prepare(
4949 id = 5
5050}).ToInstance <Dealer >()
5151
52- ' load all dealers with id higher than 5 into list
52+ // load all dealers with id higher than 5 into list
5353List < Dealer > list = Command .Prepare (
5454 " SELECT * FROM Dealers WHERE Id > @id"
5555).FetchAll (new {
5656 id = 5
5757}).ToList <Dealer >()
5858
59- ' load all dealers with id higher than 5 into dictionary
60- ' and complete dictionary keys by Id column
61- Dim dct As Dictionary < Int32 , Dealer > = Command .Prepare (
59+ // load all dealers with id higher than 5 into dictionary
60+ // and complete dictionary keys by Id column
61+ Dictionary < Int32 , Dealer > dct = Command .Prepare (
6262 " SELECT * FROM Dealers WHERE Id > @id"
6363).FetchAll (new {
6464 id = 5
0 commit comments