Updating branch with changes from master (#12)

* Copy release version to Dropbox on build

* Bug fix: Error thrown on list containing null item
This commit is contained in:
2020-09-23 13:15:30 +01:00
committed by GitHub
parent aeef35b57c
commit 8cd27646cd
3 changed files with 9 additions and 0 deletions

View File

@@ -125,6 +125,8 @@ namespace bnhtrade.Core.Data.Database.Stock
public List<Model.Stock.SkuTransactionType> ByTypeCode(List<string> typeCode)
{
typeCode.RemoveAll(string.IsNullOrWhiteSpace);
string sqlWhere = @"
WHERE TypeCode IN @typeCode ";
@@ -136,6 +138,8 @@ namespace bnhtrade.Core.Data.Database.Stock
public List<Model.Stock.SkuTransactionType> ByTypeName(List<string> typeName)
{
typeName.RemoveAll(string.IsNullOrWhiteSpace);
string sqlWhere = @"
WHERE TypeName IN @typeName ";