Пример #1
0
 public void MapToProcWithFunc(MyClass myClass)
 {
     ConstructCommand<MyClass>("dbo.DemoSimple")
         .MapAllParameters()
         .Map("@Param2").WithFunc(m => m.ToString())
         .Build(myClass)
         .ExecuteNonQuery();
 }
Пример #2
0
 public void MapToProcWithValue(MyClass myClass)
 {
     ConstructCommand<MyClass>("dbo.DemoEnum")
         .MapAllParameters()
         .Map("@ColourId").WithValue(100)
         .Build(myClass)
         .ExecuteNonQuery();
 }
Пример #3
0
 public void MapToProcFromObject(MyClass myClass)
 {
     ConstructCommand<MyClass>("dbo.DemoSimple")
         .MapAllParameters()
         .Build(myClass)
         .ExecuteNonQuery();
 }