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 ";

View File

@@ -41,6 +41,8 @@ namespace bnhtrade.Core.Logic.Stock
{
CacheInnit();
typeCodeList.RemoveAll(string.IsNullOrWhiteSpace);
if (typeCodeList == null || !typeCodeList.Any())
{
return;

View File

@@ -106,4 +106,7 @@
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\ILMerge.3.0.29\build\ILMerge.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\ILMerge.3.0.29\build\ILMerge.props'))" />
</Target>
<PropertyGroup>
<PostBuildEvent>xcopy /E /Y "$(SolutionDir)artifiacts\Release" "C:\Users\Bobbie\Dropbox\Apps\bnhtrade"</PostBuildEvent>
</PropertyGroup>
</Project>