filmov
tv
How To Create Custom Methods With DataTier Net

Показать описание
Welcome to DataTier.Net 101 - Class #1.
DataTier.Net is a C# open source alternative to Entity Framework.
In this video I cover how to create custom stored procedures and Gateway methods for DataTier.Net.
We cover two types of Find By procedures.
Find By Single Field
To find by a single field with DataTier.Net is easy:
// how to call the Gateway method for Find State By Name
State state = gateway.FindStateByName(stateName);
// Find by field set
City city = gateway.FindCityByNameAndStateId(cityName, stateId);
To me this is just a much cleaner approach to data access.
Not to mention the fact DataTier.Net is 14 times faster in my first benchmark test.
I hope you like the new format, because I am going to try and create one short video per day covering a narrower focus.
Thanks for watching
// how to call the Gateway method for Find State By Name
gateway.FindStateByName(stateName);
DataTier.Net is a C# open source alternative to Entity Framework.
In this video I cover how to create custom stored procedures and Gateway methods for DataTier.Net.
We cover two types of Find By procedures.
Find By Single Field
To find by a single field with DataTier.Net is easy:
// how to call the Gateway method for Find State By Name
State state = gateway.FindStateByName(stateName);
// Find by field set
City city = gateway.FindCityByNameAndStateId(cityName, stateId);
To me this is just a much cleaner approach to data access.
Not to mention the fact DataTier.Net is 14 times faster in my first benchmark test.
I hope you like the new format, because I am going to try and create one short video per day covering a narrower focus.
Thanks for watching
// how to call the Gateway method for Find State By Name
gateway.FindStateByName(stateName);