This commit is contained in:
2018-12-04 16:11:51 +00:00
parent 15ea480dd7
commit d6e75a0560
4 changed files with 149 additions and 8 deletions

View File

@@ -132,7 +132,7 @@ namespace AyaNova.Biz
#region Build for specific type
switch (sDataType)
{
{
case AyDataType.Text:
//escape any pre-existing apostrophes
//i.e. "O'Flaherty's pub" would cause fits
@@ -761,12 +761,7 @@ namespace AyaNova.Biz
case FilterComparisonOperator.LessThanOrEqualTo:
sb.Append("<=");
sb.Append(sValue);
break;
// case "Like":
// sb.Append("Like N'");
// sb.Append(sValue);
// sb.Append("%'");
// break;
break;
case FilterComparisonOperator.NotEqual:
sb.Append("<>");
sb.Append(sValue);

View File

@@ -23,6 +23,7 @@ namespace AyaNova.Models
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string Notes { get; set; }
public int Count {get;set;}
}

View File

@@ -205,7 +205,7 @@ namespace AyaNova.Util
//Add widget table
//id, text, longtext, boolean, currency,
exec("CREATE TABLE awidget (id BIGSERIAL PRIMARY KEY, ownerid bigint not null, name varchar(255) not null, serial bigint not null," +
"startdate timestamp, enddate timestamp, dollaramount decimal(19,5), active bool, roles int4, notes text)");
"startdate timestamp, enddate timestamp, dollaramount decimal(19,5), active bool, roles int4, count integer, notes text)");
//TEST TEST TEST ONLY FOR DEVELOPMENT TESTING TO ENSURE UNIQUENESS
//exec("CREATE UNIQUE INDEX awidget_serial_idx ON awidget (serial);");