public void Apply(ITypeFieldConventionContext context) { if (context.Member.FieldInfo.FieldType == typeof(string)) { context.SetValue("2"); } else if (context.Member.FieldInfo.FieldType == typeof(int?)) { context.SetValue(2); } }
public void Apply(ITypeFieldConventionContext context) { if (context.Member.FieldInfo.FieldType == typeof(int)) { context.SetValue(0); } }
public void Apply(ITypeFieldConventionContext context) { if (context.Member.FieldInfo.FieldType == typeof(int)) { context.SetValue(0); } }
public void Apply(ITypeFieldConventionContext context) { if (context.Member.FieldInfo.FieldType == typeof(string)) { context.SetValue(string.Empty); } }
public void Apply(ITypeFieldConventionContext context) { if (context.Member.FieldInfo.FieldType == typeof(string)) { context.SetValue(string.Empty); } }
public void Apply(ITypeFieldConventionContext context) { context.SetValue(DateTime.MinValue); }
public void Apply(ITypeFieldConventionContext context) { context.SetValue("Test"); }
public void Apply(ITypeFieldConventionContext context) { context.SetValue("Test"); }
public void Apply(ITypeFieldConventionContext context) { context.SetValue(DateTime.MinValue); }
public void Apply(ITypeFieldConventionContext context) { if (context.Member.FieldInfo.FieldType == typeof(string)) { context.SetValue("2"); } else if (context.Member.FieldInfo.FieldType == typeof(int?)) { context.SetValue(2); } }