/// <summary> /// To set field data type /// </summary> /// <param name="field"></param> /// <param name="lawField"></param> /// <param name="dataTypes"></param> private static void SetFieldDataType(FieldBEO field, LawFieldBEO lawField, IEnumerable <DataTypeBEO> dataTypes) { switch (lawField.FieldType) { case LawFieldTypeBEO.Numeric: field.DataType = "NUMERIC"; field.FieldType = dataTypes.FirstOrDefault(x => x.DataTypeId == NumericDataType); break; case LawFieldTypeBEO.DateTime: field.DataType = "DATE"; field.FieldType = dataTypes.FirstOrDefault(x => x.DataTypeId == DateDataType); break; default: field.DataType = "TEXT"; field.FieldType = dataTypes.FirstOrDefault(x => x.DataTypeId == TextDataType); break; } }
/// <summary> /// To set field data type /// </summary> /// <param name="field"></param> /// <param name="lawField"></param> /// <param name="dataTypes"></param> private static void SetFieldDataType(FieldBEO field, LawFieldBEO lawField, IEnumerable<DataTypeBEO> dataTypes) { switch (lawField.FieldType) { case LawFieldTypeBEO.Numeric: field.DataType = "NUMERIC"; field.FieldType = dataTypes.FirstOrDefault(x => x.DataTypeId == NumericDataType); break; case LawFieldTypeBEO.DateTime: field.DataType = "DATE"; field.FieldType = dataTypes.FirstOrDefault(x => x.DataTypeId == DateDataType); break; default: field.DataType = "TEXT"; field.FieldType = dataTypes.FirstOrDefault(x => x.DataTypeId == TextDataType); break; } }