StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Can the DataLayer.DataSources["VFPData"].ConnectionString be changed
Can the DataLayer.DataSources["VFPData"].ConnectionString be changed
Post Reply
Like
0
Can the DataLayer.DataSources["VFPData"].ConnectionString be changed
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
StrataFrame Team
S
StrataFrame Team
posted 19 Years Ago
ANSWER
Post Details
Share Post
S
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
I know you've already answered this for yourself, but the best way would be to just add a separate VfpDataSourceItem for each VFP connection string and just change the DataSourceKey on the business object to the appropriate data source when you need the data from a different one.
Reply
Like
0
Scott
Scott
posted 19 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 176,
Visits: 1.5K
Sorry. Answered my own question. Stupid mistake on my part. Thanks
Reply
Like
0
Scott
Scott
posted 19 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 176,
Visits: 1.5K
I have a BO with a preconfigured data source of "VFPData". I am trying to do a conversion from Fox data to SQL. The FoxBO has to be able to look at many different files with the same structure. So, is it possible to change the connectionstring of the VFPData datasource then call the fill method and have it look at a different table? I would think this would work but it keeps looking at the original table. I am even calling the dispose on the bo and creating it everytime I change the connectionstring. Any suggestions.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search