Typed Dataset with Enterprise Library
Is there a way to populate a typed dataset with the Enterprise library? I am getting a "System.InvalidCastException" exception.
TypedDS dsRuns =new TypedDS(); Database dbMMS = DatabaseFactory.CreateDatabase("TestInstance"); dsRuns = (TypedDS)dbMMS.ExecuteDataSet(cmd); |
Also, is there a way to cast a value dynamically while it's being populated into a dataset? I have a database time field that is in seconds after midnight. I want to convert this field into the timespan type. Thanks.

