Esempio n. 1
0
 public ActionResult Index()
 {
     return(View("index", dbUtility.Entities <Task>("SELECT ID, Title, Completed FROM Tasks")));
 }
Esempio n. 2
0
        static void Main( string[] args )
        {
            var dbUtility = new SqlDbUtility( "Data Source=113.98.255.70,130;Initial Catalog=TEST_FOCALPRICE_DB;Persist Security Info=True;User ID=focal_db;Password=focal_db?;Pooling=True" );

              var result = dbUtility.Entities<P>( "SELECT ProductName, UnitPrice FROM Products WHERE SKU LIKE 'EP%'" );
        }