According to Microsoft Website on Database.ExecutedDataSet method
http://msdn.microsoft.com/en-us/library/microsoft.practices.enterpriselibrary.data.database.executedataset(v=pandp.31).aspx
Retired Content
This content is outdated and is no longer being maintained. It is provided as a
courtesy for individuals who are still using these technologies. This page may
contain URLs that were valid when originally published, but now link to sites
or pages that no longer exist.
So my question is what is the latest and greatest perferred method to fill a DataSet or DataTable?
Microsoft wants you to use a DataReader or DataAdapter, here's Microsoft's page on filling a DataSet. It uses the Fill method on a DataAdapter.
You could then use the Add method to add DataRows to that DataSet.
v5 still has it.
"This content is outdated" in this case means that you are looking in old documentation of entlib.
EDIT:
Method is not outdated nor replaced. It still exists in new version of entlib.
EDIT2:
And the method is not deprecated.
Related
Is it possible to retrieve an existing classic style, even though they are no longer supported?
I have a URL that used to point at our style, but now I get json that looks like this:
{
message: "Classic styles are no longer supported; see https://blog.mapbox.com/deprecating-studio-classic-styles-d8892ac38cb4 for more information"
}
My company was sidelined by the depreciation of classic styles. It required some emergency hotfixes to get things up and running again, but our maps no longer have our signature look. We had a professional design our classic style, and now we want to convert it to MapBox Studio.
Does our previous style still exist? If it does, how can we retrieve it?
Thank you!
They wrote on a blog entry:
We made the decision to stop active maintenance of the core technology that powers these maps (CartoCSS) back in 2016. However, we continued to support Classic Styles through our Legacy Maps and Legacy Static Images APIs.
Here is the documentation about the Legacy Maps: https://docs.mapbox.com/api/legacy/maps/
In my case, it was faster to change to the new API. The old access token was still working. Here is how to implement it: https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/
Suppose we have a page and it has header and footer links. For which we can edit the value using the header/footer dialogs of the components. Now, I want to check that who all have updated those links in any specific environment. How can I check that?
From the page properties, it just shows who made the last update (cq:lastModifiedBy property), but I need the specific versions/history of the page.
Do you want to check this in AEM or in your Code?
The sitekick provides a list with versions that have been created. See the official documentation.
If you want to load versions in AEM, please have a look at this (older) Blog post which describes how to use the VersionManger to work with Versions.
Versions are stored in /jcr:system/jcr:versionStorage within a node named by the first letters of the UUID assigned to a page (jcr:uuid)
I am trying to publish user stories on a facebook user's wall using graph api.
My use case is like this:
the user wrote an article that regards a specific community
I created one action 'writes' and two objects 'article' and 'community'.
The two objects have each their pages on my website, where I created all the corresponding meta data for open graph. Tested with the Open Graph Object Debugger and it looks fine.
Now I wanted to customize the way the story is shown.
The default sentence is for example
"[user] wrote [article.noun] via [appname]"
(brackets are there just to identify placeholders)
but I would like to include information about the community.
So what I did is add a property to the write action, called community that expects a reference to a community object.
Then I changed the sentence to:
"[user] wrote [article.noun] on community.title via [appname]"
via triboom demo"
but community.title is just treated as plain text and not as a placeholder.
Is there a way to tell FB to use the property value in the sentence?
I could not find any documentation on this.
TIA
s
Ok, just found out you need to use {object.property} syntax (doc is here https://developers.facebook.com/docs/opengraph/creating-custom-stories#variations)
Will investigate more and update the answer if it works.
Thank you very much for posting that!
How can the placeholders be referenced if there are more than one objects in the sentence? Like, for example, in the "One to Two" sentence:
"[user] wrote [article1.noun] and [article2.noun] on community.title via [appname]"
Please excuse for posting this as an answer. Unfortunately, I lack the reputation to comment.
I've implemented this for my site:
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0
and I am receiving updates successfully. The format of these updates is fairly easy to understand by understanding the JSON response. However, I can't find a list of possible types of changes (possible values for the JSON response) so I can handle / replicate all the scenarios that may come up.
Is this published anywhere?
The possible values for 'item' and 'verb' are not documented. Here's everything I have observed when receiving updates for pages only:
Items:
like
share
comment
photo
video
post
Verbs:
add
remove
edited
hide
unhide
Can't claim this is comprehensive, but that's the best of my knowledge based on reviewing logs of many thousands of updates. I would guess that user, permissions, and payments RTUS have their own sets of possible values.
Not sure what you mean with types of changes exactly. There's
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#subscribefields
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#receiveupdates
If you click on the first links down arrows on the right side, you'll get the list of fields that can change for the user and the page objects.
After some searching, I came across https://developers.facebook.com/docs/public_feed#updates There's a reference to http://activitystrea.ms/ in the code:
<activity:verb>http://activitystrea.ms/schema/1.0/post/</activity:verb>
Unfortunately, the website doesn't work apparantly, but one can view an old version here:
https://web.archive.org/web/20140720095121/http://activitystrea.ms/registry/verbs/
This seems to contain the list of possible verbs wihtin this schema. Which of those Facebook actually uses is not clear to me unfortunately. There's the specs as well: http://activitystrea.ms/specs/json/schema/activity-schema.html#verbs
I have a number of non-page content items that are used as "callouts" on the side of pages throughout my website that I am building in Sitecore. Ideally I would like to be able to define the presentation information for these callouts independently. Then when a CMS author selects callouts for a particular page in the site, they know how to display themselves. I read an excellent blog post about how to do this here: http://www.awareweb.com/AwareBlog/InversionControl2.aspx. I used the first method that he describes in the post.
However my implementation of that code doesn't completely work. It seems to get the correct rendering and it iterates properly through the selected non-page callout items. But when it displays them on the page it seems like the callout items are still using Sitecore.Context.Item as their source item and not the source item that was passed in to them via the strDataSource variable as seen in the example code.
Do I have to do anything special in the code behind for the sublayouts for the callouts to tell them not to use Sitecore.Context.Item and instead to use the source item that was passed in? Otherwise I can't figure out why it's not working. Any ideas?
Thanks,
Corey
Setting the DataSource in a sublayout doesn't explicitly set the Context.Item to a different value, it just sets a property in a sublayout that it can use itself.
Rather than write up the solution again, John West's blog already covers this subject here, so I'd recommend you read that - http://www.sitecore.net/Community/Technical-Blogs/John-West-Sitecore-Blog/Posts/2010/11/How-to-Apply-Data-Sources-to-Sitecore-ASPNET-Presentation-Components.aspx
I would recommend using the SublayoutParameterHelper Shared Source library which provides a Helper and a base class to use with your sublayouts for accessing the Item represented by an ID set in the DataSource; John also cites this library in his blog post.