|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
DataLayer.DataSources is a shared (static) property, so it will always exist... You don't create an instance of the DataLayer, and then reference the DataSources property on it, you just access the shared DataSources property on the DataLayer class, just like it's written. The rest of your code looks good. Just make sure you call that code within the ServiceStart method (or whatever name it has) to ensure that the data source is added to that static collection.
|