Esempio n. 1
0
        private PutItemRequest CreatePutItemRequest(Organization item)
        {
            PutItemRequest request = new PutItemRequest();

            request.TableName = ConfigurationManager.AppSettings["organizationTableName"];

            request.Item = new Dictionary <string, AttributeValue>();

            request.Item.Add(ORGANIZATION_ID_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.OrganizationId));
            request.Item.Add(DynamoUtilities.SERIALIZED_DATA_COLUMN, DynamoUtilities.GetItemAttributeSerializedValue(item));

            return(request);
        }
        private static PutItemRequest CreatePutItemRequest(UserPaymentInfo item)
        {
            PutItemRequest request = new PutItemRequest();

            request.TableName = ConfigurationManager.AppSettings["userPaymentInfoTableName"];

            request.Item = new Dictionary <string, AttributeValue>();

            request.Item.Add(USER_PAYMENT_ID_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.UserPaymentInfoId));
            request.Item.Add(USER_ID_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.UserId));
            request.Item.Add(DynamoUtilities.SERIALIZED_DATA_COLUMN, DynamoUtilities.GetItemAttributeSerializedValue(item));

            return(request);
        }
Esempio n. 3
0
        private static PutItemRequest CreatePutItemRequest(UserInfo item)
        {
            PutItemRequest request = new PutItemRequest();

            request.TableName = ConfigurationManager.AppSettings["userTableName"];

            request.Item = new Dictionary <string, AttributeValue>();

            request.Item.Add(USER_ID_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.Id));
            request.Item.Add(ORGANIZATION_ID_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.OrganizationId));
            request.Item.Add(EMAIL_ADDRESS_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.EmailAddress));
            request.Item.Add(USER_NAME_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.UserName));
            request.Item.Add(PASSWORD_COLUMN, DynamoUtilities.GetItemAttributeStringValue(item.PasswordHash));
            request.Item.Add(DynamoUtilities.SERIALIZED_DATA_COLUMN, DynamoUtilities.GetItemAttributeSerializedValue(item));

            return(request);
        }