DataReadListpDataModel Method |
Namespace: Velo.Data.Database
internal static List<pDataModel> ReadList<pDataModel>( string pSQLStatement, string pConnectionString = "" ) where pDataModel : new()
public static List<Models.BikeHistory> GetByBikeNumber(string pBikeNumber, string pConnectionString = "") { try { string lSQLStatement = Velo.Data.BikeHistory.GetSQLSelectJoinBike + $" WHERE Bike.Number like '%{pBikeNumber}%'" + " ORDER BY [Bike].[Number], [Bike].[Brand], [Bike].[Type];"; return Velo.Data.Database.Data.ReadList<Velo.Data.Models.BikeHistory>(pSQLStatement: lSQLStatement, pConnectionString: pConnectionString); } catch (Exception lException) { //* debug information * System.Diagnostics.Debug.WriteLine("#Exception: " + lException.Message); throw; } }