/// <summary> /// Generate CSharp property with value. /// </summary> private static void GenerateCSharpRowIntegrateField(UtilDalType.Field field, object value, StringBuilder result) { string fieldNameCSharp = field.FieldNameCSharp; FrameworkType frameworkType = UtilDalType.FrameworkTypeFromEnum(field.FrameworkTypeEnum); string valueCSharp; if (value is string) { valueCSharp = UtilCli.EscapeCSharpString(value.ToString()); } else { valueCSharp = frameworkType.ValueToCSharp(value); } result.Append(string.Format("{0} = {1}", fieldNameCSharp, valueCSharp)); }