We are trying to run sample code effects business-rule engine MVC sample by using an existing .NET class as a Source Object, this class have two drop-down Fields. FieldA have string datatype, whereas FieldB is of int data type as shown below both fields have data source on them to treat them as drop-down fields.
[Data("FieldAData", "getFieldAData")]
[Data("FieldBData", "getFieldBData")]
public class Fields
{
public Fields()
{
this.ID = Guid.Empty;
}
public Guid ID { get; set; }
[Field(DisplayName = "Field A", DataSourceName = "FieldAData", Description = "Field A")]
public string FieldA { get; set; }//(varchar(2), null)
[Field(DisplayName = "Field B", DataSourceName = "FieldBData", Description = "Field B")]
public int FieldB { get; set; }//(int, null)
[Field(DisplayName = "Application Number", Description = "Application Number", Max = 20)]
public string ApplicationNumber { get; set; }//(varchar(20), null)
when we create a new execution rule on this class then we are able to see drop down for FieldB (having data type int) but not for FieldA (having data type string). Test Rule Sample
Is data source binding is not available for fields with data type string? or we are missing something here?