var query =
from c in dc.Customers
where !(from o in dc.Orders
select o.CustomerID)
.Contains(c.CustomerID)
select c;
I took this from this link, Marco Russo's blog
A C#, iOS programmer by trade from Melbourne, Australia.
Content provided here are generic in nature and do not represent any form of current work.
var query =
from c in dc.Customers
where !(from o in dc.Orders
select o.CustomerID)
.Contains(c.CustomerID)
select c;

OAuthTokenResponse oatResponse = OAuthUtility.GetRequestToken(CONSUMERKEY, CONSUMERSECRET, HttpContext.Current.Request.Url.AbsoluteUri);
if ((Request.QueryString["oauth_token"] == null) && (Session["tweetOAuthToken"] == null))
{
Uri uri = OAuthUtility.BuildAuthorizationUri(oatResponse.Token);
Response.Redirect(uri.AbsoluteUri);
}
else
{
oatResponse = OAuthUtility.GetAccessToken(CONSUMERKEY, CONSUMERSECRET, Request.QueryString["oauth_token"], Request.QueryString["oauth_verifier"]);
//Add to Session that will expire in 24 hours
OAuthTokens oAuthToken = new OAuthTokens();
oAuthToken.AccessToken = oatResponse.Token;
oAuthToken.AccessTokenSecret = oatResponse.TokenSecret;
oAuthToken.ConsumerKey = CONSUMERKEY;
oAuthToken.ConsumerSecret = CONSUMERSECRET;
Session.Add("tweetOAuthToken", oAuthToken);
Session.Timeout = 1440;
Response.Redirect("TwitterLanding.aspx");
}
| My web portal |
| Scott Gu's blog |
| Rob Conery |
| Vikram Lakhotia's blog |
| Stack Overflow |
| Ray Wenderlich - iOS |
| MSDN - Visual C Sharp |
| 101 LINQ Samples |
| MVC |
| jQuery |