本文整理汇总了C#中Amazon.SimpleDB.Model.PutAttributesRequest类的典型用法代码示例。如果您正苦于以下问题:C# PutAttributesRequest类的具体用法?C# PutAttributesRequest怎么用?C# PutAttributesRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PutAttributesRequest类属于Amazon.SimpleDB.Model命名空间,在下文中一共展示了PutAttributesRequest类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: InvalidOperationException
PutAttributesResponse AmazonSimpleDB.PutAttributes(PutAttributesRequest request)
{
Dictionary<string, Dictionary<string, string>> domain;
if (!Domains.TryGetValue(request.DomainName, out domain))
{
throw new InvalidOperationException("The specified domain does not exist.");
}
Dictionary<string, string> item;
if (!domain.TryGetValue(request.ItemName, out item))
{
item = new Dictionary<string, string>();
domain.Add(request.ItemName, item);
}
foreach (var attribute in request.Attribute)
{
item[attribute.Name] = attribute.Value;
}
++PutAttributesCount;
return new PutAttributesResponse();
}
开发者ID:DaveVdE,项目名称:Simple.Data.SimpleDB,代码行数:25,代码来源:FakeAmazonSimpleDB.cs
示例2: AddUpdateRoute
public bool AddUpdateRoute(Route route)
{
bool success = true;
using (AmazonSimpleDBClient client = new AmazonSimpleDBClient(_publicKey, _secretKey))
{
PutAttributesRequest request = new PutAttributesRequest
{
DomainName = DomainName,
ItemName = route.Id.ToString()
};
request.Attribute.Add(new ReplaceableAttribute() { Name = "Name", Replace = true, Value = route.Name });
request.Attribute.Add(new ReplaceableAttribute() { Name = "Distance", Replace = true, Value = route.Distance.ToString() });
request.Attribute.Add(new ReplaceableAttribute() { Name = "Id", Replace = true, Value = route.Id.ToString() });
request.Attribute.Add(new ReplaceableAttribute() { Name = "LastTimeRidden", Replace = true, Value = route.LastTimeRidden.ToShortDateString() });
request.Attribute.Add(new ReplaceableAttribute() { Name = "Location", Replace = true, Value = route.Location });
try
{
PutAttributesResponse response = client.PutAttributes(request);
}
catch(Exception repositoryError)
{
success = false;
}
}
return success;
}
开发者ID:bobtjanitor,项目名称:bob-the-janitor-sample-code,代码行数:26,代码来源:RouteRepository.cs
示例3: ProcessRecord
protected override void ProcessRecord()
{
AmazonSimpleDB client = base.GetClient();
Amazon.SimpleDB.Model.PutAttributesRequest request = new Amazon.SimpleDB.Model.PutAttributesRequest();
request.DomainName = this._DomainName;
request.ItemName = this._ItemName;
Amazon.SimpleDB.Model.PutAttributesResponse response = client.PutAttributes(request);
}
开发者ID:ksikes,项目名称:Amazon.Powershell,代码行数:8,代码来源:PutAttributesCmdlet.cs
示例4: Put
public void Put(string domainName, string itemName, List<ReplaceableAttribute> replaceableAttributes)
{
var putAttributesRequest = new PutAttributesRequest
{
DomainName = domainName,
ItemName = itemName,
Attribute = replaceableAttributes
};
var putAttributesResponse = _simpleDbClient.PutAttributes(putAttributesRequest);
}
开发者ID:Molibar,项目名称:Molibar.WebTracker,代码行数:10,代码来源:SimpleDbProxy.cs
示例5: Put
public void Put(string domain, string id, Dictionary<string, string> properties, bool replace = false)
{
PutAttributesRequest request = new PutAttributesRequest()
.WithDomainName(domain)
.WithItemName(id)
.WithAttribute(properties.Select(kv =>
new ReplaceableAttribute().WithName(kv.Key).WithValue(kv.Value).
WithReplace(replace)).ToArray());
// .WithExpected(new UpdateCondition())
_simpleDbClient.PutAttributes(request);
}
开发者ID:CloudMorph,项目名称:CloudMorph,代码行数:12,代码来源:AwsSimpleDbProvider.cs
示例6: Save
public void Save()
{
PutAttributesRequest putRequest = new PutAttributesRequest().WithDomainName(Domain.CourseList).WithItemName(Name);
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(NameField).WithValue(Name));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(IdField).WithValue(Id));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(SortOrderField).WithValue(SortOrder.ToString()));
using (AmazonSimpleDB client = ClientFactory.CreateDBClient())
{
client.PutAttributes(putRequest);
}
}
开发者ID:erwilleke,项目名称:ocu.angellight.code,代码行数:12,代码来源:AwsCourse.cs
示例7: Save
public void Save()
{
PutAttributesRequest putRequest = new PutAttributesRequest().WithDomainName(Domain.CourseScoreList).WithItemName(CourseId+Email);
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(CourseIdField).WithValue(CourseId));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(EmailField).WithValue(Email));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(PassingDateField).WithValue(PassingDate.ToString()));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(IsPassingScoreField).WithValue(IsPassingScore.ToString()));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(PercentCompleteField).WithValue(PercentComplete.ToString()));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(LastSavedOnDateField).WithValue(DateTime.UtcNow.ToString()));
using (AmazonSimpleDB client = ClientFactory.CreateDBClient())
{
client.PutAttributes(putRequest);
}
}
开发者ID:erwilleke,项目名称:ocu.angellight.code,代码行数:16,代码来源:AwsCourseScore.cs
示例8: Save
public void Save()
{
PutAttributesRequest putRequest = new PutAttributesRequest().WithDomainName(Domain.UserList).WithItemName(Email);
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(NameField).WithValue(Name));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(EmailField).WithValue(Email));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(PasswordField).WithValue(Password));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(IsStudentAdminField).WithValue(IsStudentAdmin.ToString()));
putRequest.Attribute.Add(new ReplaceableAttribute().WithReplace(true).WithName(IsSystemAdminField).WithValue(IsSystemAdmin.ToString()));
CourseAccesses.ForEach( s =>
putRequest.Attribute.Add(new ReplaceableAttribute().WithName(CourseAccessField).WithValue(s)));
using (AmazonSimpleDB client = ClientFactory.CreateDBClient())
{
client.PutAttributes(putRequest);
}
}
开发者ID:erwilleke,项目名称:ocu.angellight.code,代码行数:16,代码来源:AwsUser.cs
示例9: NotifyFeatureSubscription
/// <summary>
/// Notifies subscription to a given feature. If it fails for any reason, logs the error and raises the exception.
/// </summary>
/// <param name="applicationName">Name of the application the feature is in</param>
/// <param name="featureName">Name of the feature</param>
/// <param name="subscriber">Who subscribed to the feature</param>
/// <param name="subscribedAt">When it was subscribed at. If null, defaults to the current date/time</param>
public void NotifyFeatureSubscription( string applicationName, string featureName, string subscriber, DateTime? subscribedAt = new DateTime?() )
{
// Make sure the domain exists
CreateDomain(_domainName);
// Create the request
var request = new PutAttributesRequest()
.WithDomainName(_domainName)
.WithItemName(Guid.NewGuid().ToString())
.WithAttribute(new[]
{
new ReplaceableAttribute().WithName("application").WithValue(applicationName ?? ""),
new ReplaceableAttribute().WithName("feature").WithValue(featureName ?? ""),
new ReplaceableAttribute().WithName("subscriber").WithValue(subscriber ?? ""),
new ReplaceableAttribute().WithName("subscribedAt").WithValue((subscribedAt ?? DateTime.Now).ToString())
});
// Send the request
_simpleDbClient.PutAttributes(request);
}
开发者ID:jrolstad,项目名称:Directus.Metrics,代码行数:27,代码来源:SimpleDbFeatureSubscriptionService.cs
示例10: Add
public void Add(string storeIdentifier, string requestIdentifier, string[] responseItems)
{
EnsureDomain(storeIdentifier);
foreach (var responseItem in responseItems)
{
var itemName = Guid.NewGuid().ToString();
var putRequest = new PutAttributesRequest()
.WithDomainName(storeIdentifier)
.WithItemName(itemName);
List<ReplaceableAttribute> attributes = putRequest.Attribute;
attributes.Add(new ReplaceableAttribute()
.WithName("RequestId")
.WithValue(requestIdentifier));
attributes.Add(new ReplaceableAttribute()
.WithName("ResponseItem")
.WithValue(responseItem));
_simpleDb.PutAttributes(putRequest);
}
}
开发者ID:qwert789,项目名称:codegallery,代码行数:20,代码来源:SimpleDBDataStore.cs
示例11: NotifyFeatureUsage
/// <summary>
/// Logs usage of a given feature. If it fails for any reason, logs the error and raises the exception.
/// </summary>
/// <param name="applicationName">Name of the application the feature is in</param>
/// <param name="featureName">Name of the feature</param>
/// <param name="usedBy">Who used the feature</param>
/// <param name="usedAt">When it was used at</param>
/// <param name="usageDetails">Details of the usage</param>
public void NotifyFeatureUsage( string applicationName, string featureName, string usageDetails = null, string usedBy = null, DateTime? usedAt = new DateTime?() )
{
// Make sure the domain exists
CreateDomain(_domainName);
// Create the request
var request = new PutAttributesRequest()
.WithDomainName(_domainName)
.WithItemName(Guid.NewGuid().ToString())
.WithAttribute(new[]
{
new ReplaceableAttribute().WithName("application").WithValue(applicationName ?? ""),
new ReplaceableAttribute().WithName("feature").WithValue(featureName ?? ""),
new ReplaceableAttribute().WithName("detail").WithValue(usageDetails ?? ""),
new ReplaceableAttribute().WithName("usedBy").WithValue(usedBy ?? ""),
new ReplaceableAttribute().WithName("usedAt").WithValue((usedAt ?? DateTime.Now).ToString())
});
// Send the request
_simpleDbClient.PutAttributes(request);
}
开发者ID:jrolstad,项目名称:Directus.Metrics,代码行数:29,代码来源:SimpleDbFeatureUsageService.cs
示例12: addDataAsynchronized
/// <summary>
/// Add 50 items using the asynchronized API.
/// </summary>
static void addDataAsynchronized()
{
Console.WriteLine("Start testing asynchronized method.");
string domainName = "AsyncDomain";
sdb.CreateDomain(new CreateDomainRequest()
.WithDomainName(domainName));
Results results = new Results();
List<WaitHandle> waitHandles = new List<WaitHandle>();
try
{
long start = DateTime.Now.Ticks;
for (int i = 0; i < MAX_ROWS; i++)
{
PutAttributesRequest request = new PutAttributesRequest()
.WithDomainName(domainName)
.WithItemName("ItemName" + i)
.WithAttribute(new ReplaceableAttribute()
.WithName("Value")
.WithValue(i.ToString()));
// Start the put attributes operation. The callback method will be called when the put attributes operation
// is complete or an error occurs.
IAsyncResult asyncResult = sdb.BeginPutAttributes(request, new AsyncCallback(Program.callBack), results);
waitHandles.Add(asyncResult.AsyncWaitHandle);
}
// Wait till all the requests that were started are completed.
WaitHandle.WaitAll(waitHandles.ToArray());
TimeSpan ts = new TimeSpan(DateTime.Now.Ticks - start);
Console.WriteLine("Time: {0} ms Successes: {1} Errors: {2}", ts.TotalMilliseconds, results.Successes, results.Errors);
}
finally
{
sdb.DeleteDomain(new DeleteDomainRequest()
.WithDomainName(domainName));
}
}
开发者ID:bernardoleary,项目名称:MyBigBro,代码行数:42,代码来源:Program.cs
示例13: AddBroadcastMessage
public void AddBroadcastMessage(string userName, string body, IEnumerable<MessageAttachment> attachments)
{
int broadcastDomainNumber = new Random().Next(0, 7);
List<ReplaceableAttribute> attrs = new List<ReplaceableAttribute>()
{
new ReplaceableAttribute()
.WithName("body")
.WithValue(body),
new ReplaceableAttribute()
.WithName("time")
.WithValue(AmazonSimpleDBUtil.FormattedCurrentTimestamp)
};
int i = 0;
foreach (var attachment in attachments)
{
attrs.Add(new ReplaceableAttribute()
.WithName(String.Format("Attachment_{0}_URL", i))
.WithValue(attachment.CloudFrontURI.AbsoluteUri));
attrs.Add(new ReplaceableAttribute()
.WithName(String.Format("Attachment_{0}_Description", i))
.WithValue(attachment.Description));
++i;
}
PutAttributesRequest request = new PutAttributesRequest()
.WithDomainName(m_BroadcastMessagesDomain + broadcastDomainNumber.ToString())
.WithItemName(userName + "_" + Guid.NewGuid());
request.Attribute = attrs;
PutAttributesResponse resoponse = m_simpleDBClient.PutAttributes(request);
}
开发者ID:victorzzz,项目名称:CraneChat,代码行数:37,代码来源:SimpleDBAdapter.cs
示例14: CreateUser
public override MembershipUser CreateUser(string userName, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
{
MembershipUser user = this.GetUser(userName, false);
if (user == null)
{
string existingUser = this.GetUserNameByEmail(email);
if (String.IsNullOrEmpty(existingUser))
{
List<ReplaceableAttribute> data = new List<ReplaceableAttribute>();
data.Add(new ReplaceableAttribute().WithName("Email").WithValue(email));
data.Add(new ReplaceableAttribute().WithName("Password").WithValue(password));
if (passwordQuestion != null)
{
data.Add(new ReplaceableAttribute().WithName("PasswordQuestion").WithValue(passwordQuestion));
}
if (passwordAnswer != null)
{
data.Add(new ReplaceableAttribute().WithName("PasswordAnswer").WithValue(passwordAnswer));
}
data.Add(new ReplaceableAttribute().WithName("IsApproved").WithValue(isApproved.ToString()));
PutAttributesRequest request = new PutAttributesRequest()
.WithDomainName(Settings.Default.AWSMembershipDomain)
.WithItemName(userName);
request.Attribute = data;
this._simpleDBClient.PutAttributes(request);
status = MembershipCreateStatus.Success;
user = this.GetUser(userName, false);
}
else
{
status = MembershipCreateStatus.DuplicateEmail;
}
}
else
{
status = MembershipCreateStatus.DuplicateUserName;
}
return user;
}
开发者ID:ksikes,项目名称:Amazon.Powershell,代码行数:42,代码来源:SimpleDbMembershipProvider.cs
示例15: ChangePassword
public override bool ChangePassword(string userName, string oldPwd, string newPwd)
{
if (!this.ValidateUser(userName, oldPwd))
{
return false;
}
PutAttributesRequest request = new PutAttributesRequest()
.WithDomainName(Settings.Default.AWSMembershipDomain)
.WithItemName(userName)
.WithAttribute(new ReplaceableAttribute
{
Name = "Password",
Value = newPwd,
Replace = true
}
);
this._simpleDBClient.PutAttributes(request);
return true;
}
开发者ID:ksikes,项目名称:Amazon.Powershell,代码行数:20,代码来源:SimpleDbMembershipProvider.cs
示例16: Persist
public void Persist(Daffodil daffodil)
{
#if DEBUG
Assert.Fail(()=>(!String.IsNullOrWhiteSpace(_serviceUrl)), "You are a big dummy!");
#endif
this.CreateDomainIfNecessary("daffodil");
var client = this.GetClient();
var attributes = new List<ReplaceableAttribute>
{
new ReplaceableAttribute
{
Name = "Id",
Replace = true,
Value = daffodil.Id,
},
new ReplaceableAttribute
{
Name = "Data",
Replace = true,
Value = daffodil.Data,
}
};
var request = new PutAttributesRequest
{
DomainName = "daffodil",
Attribute = attributes,
ItemName = daffodil.Id
};
client.PutAttributes(request);
}
开发者ID:Ravikumarmaddi,项目名称:UW-PCE-Cloud-Computing-302,代码行数:33,代码来源:SimpleDbProvider.cs
示例17: NotImplementedException
IAsyncResult AmazonSimpleDB.BeginPutAttributes(PutAttributesRequest request, AsyncCallback callback, object state)
{
throw new NotImplementedException();
}
开发者ID:DaveVdE,项目名称:Simple.Data.SimpleDB,代码行数:4,代码来源:FakeAmazonSimpleDB.AmazonSimpleDB.cs
示例18: CreateUser
/// <summary>
/// Creates a user.
/// </summary>
/// <param name="request"></param>
public void CreateUser(CreateUserRequest request)
{
var putRequest = new PutAttributesRequest().WithDomainName(_config.StoreName)
.WithItemName(request.UserName)
.WithAttribute(new ReplaceableAttribute().WithName("Password").WithValue(request.Password))
;
_client.PutAttributes(putRequest);
}
开发者ID:elliottohara,项目名称:WhaleAuthenticate,代码行数:12,代码来源:Class1.cs
示例19: Main
public static void Main(string[] args)
{
AmazonSimpleDB sdb = AWSClientFactory.CreateAmazonSimpleDBClient(RegionEndpoint.USWest2);
try
{
Console.WriteLine("===========================================");
Console.WriteLine("Getting Started with Amazon SimpleDB");
Console.WriteLine("===========================================\n");
// Creating a domain
Console.WriteLine("Creating domain called MyStore.\n");
String domainName = "MyStore";
CreateDomainRequest createDomain = (new CreateDomainRequest()).WithDomainName(domainName);
sdb.CreateDomain(createDomain);
// Listing domains
ListDomainsResponse sdbListDomainsResponse = sdb.ListDomains(new ListDomainsRequest());
if (sdbListDomainsResponse.IsSetListDomainsResult())
{
ListDomainsResult listDomainsResult = sdbListDomainsResponse.ListDomainsResult;
Console.WriteLine("List of domains:\n");
foreach (String domain in listDomainsResult.DomainName)
{
Console.WriteLine(" " + domain);
}
}
Console.WriteLine();
// Putting data into a domain
Console.WriteLine("Putting data into MyStore domain.\n");
String itemNameOne = "Item_01";
PutAttributesRequest putAttributesActionOne = new PutAttributesRequest().WithDomainName(domainName).WithItemName(itemNameOne);
List<ReplaceableAttribute> attributesOne = putAttributesActionOne.Attribute;
attributesOne.Add(new ReplaceableAttribute().WithName("Category").WithValue("Clothes"));
attributesOne.Add(new ReplaceableAttribute().WithName("Subcategory").WithValue("Sweater"));
attributesOne.Add(new ReplaceableAttribute().WithName("Name").WithValue("Cathair Sweater"));
attributesOne.Add(new ReplaceableAttribute().WithName("Color").WithValue("Siamese"));
attributesOne.Add(new ReplaceableAttribute().WithName("Size").WithValue("Small"));
attributesOne.Add(new ReplaceableAttribute().WithName("Size").WithValue("Medium"));
attributesOne.Add(new ReplaceableAttribute().WithName("Size").WithValue("Large"));
sdb.PutAttributes(putAttributesActionOne);
String itemNameTwo = "Item_02";
PutAttributesRequest putAttributesActionTwo = new PutAttributesRequest().WithDomainName(domainName).WithItemName(itemNameTwo);
List<ReplaceableAttribute> attributesTwo = putAttributesActionTwo.Attribute;
attributesTwo.Add(new ReplaceableAttribute().WithName("Category").WithValue("Clothes"));
attributesTwo.Add(new ReplaceableAttribute().WithName("Subcategory").WithValue("Pants"));
attributesTwo.Add(new ReplaceableAttribute().WithName("Name").WithValue("Designer Jeans"));
attributesTwo.Add(new ReplaceableAttribute().WithName("Color").WithValue("Paisley Acid Wash"));
attributesTwo.Add(new ReplaceableAttribute().WithName("Size").WithValue("30x32"));
attributesTwo.Add(new ReplaceableAttribute().WithName("Size").WithValue("32x32"));
attributesTwo.Add(new ReplaceableAttribute().WithName("Size").WithValue("32x34"));
sdb.PutAttributes(putAttributesActionTwo);
String itemNameThree = "Item_03";
PutAttributesRequest putAttributesActionThree = new PutAttributesRequest().WithDomainName(domainName).WithItemName(itemNameThree);
List<ReplaceableAttribute> attributesThree = putAttributesActionThree.Attribute;
attributesThree.Add(new ReplaceableAttribute().WithName("Category").WithValue("Clothes"));
attributesThree.Add(new ReplaceableAttribute().WithName("Subcategory").WithValue("Pants"));
attributesThree.Add(new ReplaceableAttribute().WithName("Name").WithValue("Sweatpants"));
attributesThree.Add(new ReplaceableAttribute().WithName("Color").WithValue("Blue"));
attributesThree.Add(new ReplaceableAttribute().WithName("Color").WithValue("Yellow"));
attributesThree.Add(new ReplaceableAttribute().WithName("Color").WithValue("Pink"));
attributesThree.Add(new ReplaceableAttribute().WithName("Size").WithValue("Large"));
attributesThree.Add(new ReplaceableAttribute().WithName("Year").WithValue("2006"));
attributesThree.Add(new ReplaceableAttribute().WithName("Year").WithValue("2007"));
sdb.PutAttributes(putAttributesActionThree);
String itemNameFour = "Item_04";
PutAttributesRequest putAttributesActionFour = new PutAttributesRequest().WithDomainName(domainName).WithItemName(itemNameFour);
List<ReplaceableAttribute> attributesFour = putAttributesActionFour.Attribute;
attributesFour.Add(new ReplaceableAttribute().WithName("Category").WithValue("Car Parts"));
attributesFour.Add(new ReplaceableAttribute().WithName("Subcategory").WithValue("Engine"));
attributesFour.Add(new ReplaceableAttribute().WithName("Name").WithValue("Turbos"));
attributesFour.Add(new ReplaceableAttribute().WithName("Make").WithValue("Audi"));
attributesFour.Add(new ReplaceableAttribute().WithName("Model").WithValue("S4"));
attributesFour.Add(new ReplaceableAttribute().WithName("Year").WithValue("2000"));
attributesFour.Add(new ReplaceableAttribute().WithName("Year").WithValue("2001"));
attributesFour.Add(new ReplaceableAttribute().WithName("Year").WithValue("2002"));
sdb.PutAttributes(putAttributesActionFour);
String itemNameFive = "Item_05";
PutAttributesRequest putAttributesActionFive = new PutAttributesRequest().WithDomainName(domainName).WithItemName(itemNameFive);
List<ReplaceableAttribute> attributesFive = putAttributesActionFive.Attribute;
attributesFive.Add(new ReplaceableAttribute().WithName("Category").WithValue("Car Parts"));
attributesFive.Add(new ReplaceableAttribute().WithName("Subcategory").WithValue("Emissions"));
attributesFive.Add(new ReplaceableAttribute().WithName("Name").WithValue("O2 Sensor"));
attributesFive.Add(new ReplaceableAttribute().WithName("Make").WithValue("Audi"));
attributesFive.Add(new ReplaceableAttribute().WithName("Model").WithValue("S4"));
attributesFive.Add(new ReplaceableAttribute().WithName("Year").WithValue("2000"));
attributesFive.Add(new ReplaceableAttribute().WithName("Year").WithValue("2001"));
attributesFive.Add(new ReplaceableAttribute().WithName("Year").WithValue("2002"));
sdb.PutAttributes(putAttributesActionFive);
// Getting data from a domain
Console.WriteLine("Print attributes with the attribute Category that contain the value Clothes.\n");
String selectExpression = "Select * From MyStore Where Category = 'Clothes'";
SelectRequest selectRequestAction = new SelectRequest().WithSelectExpression(selectExpression);
//.........这里部分代码省略.........
开发者ID:bernardoleary,项目名称:MyBigBro,代码行数:101,代码来源:Program.cs
示例20: AddToGroup
public void AddToGroup(AddToGroupRequest request)
{
var putAttribute = new PutAttributesRequest().WithDomainName(_config.StoreName).WithItemName(
request.UserName)
.WithAttribute(new ReplaceableAttribute().WithName("Groups").WithValue(request.Group));
_client.PutAttributes(putAttribute);
}
开发者ID:elliottohara,项目名称:WhaleAuthenticate,代码行数:7,代码来源:Class1.cs
注:本文中的Amazon.SimpleDB.Model.PutAttributesRequest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论