I have a class with some string properties that represent dates in an arbitrary format. These need to remain as String properties. Is there a way, using the fluent API or something, to indicate that these column types should be datetime. And then somehow I can tell EF to marshal the data in a certain way?
Can I just use:
HasColumnType("datetime")
and if so, how would I then handle the marshalling?
Example Class:
public Class SomePOCO{
public String SomeTimeInWierdFormat { get; set; }
public String SomeOtherTimeInWierdFormat { get; set; }
public String SomeString{ get; set; }
}
Is there a string format that I can massage these strings into that would allow me use HasColumnType("datetime") without any complaints?