public EntityProperty GetEntityProperty( AzureTableEntity entity, EntityPropertyAccessor propertyAccessor, bool isMergingOperation) { if (!(isMergingOperation && propertyAccessor.IsValueType)) { return(propertyAccessor.GetProperty(entity)); } throw new InvalidOperationException($"Merging of value types is forbidden. If you added value type property and do merging operation not accidentally, select different value type merging strategy for the entity type {entity.GetType()}"); }
public void Add(string key, string value) { var entity = new AzureTableEntity() { PartitionKey = key, RowKey = key, Titulo = value, Descricao = "Adicionando campo" }; TableOperation insert = TableOperation.InsertOrReplace(entity); _table.Execute(insert); }
/// <summary> /// Handler called when a Push Notification is received /// </summary> private async void Channel_PushNotificationReceived(PushNotificationChannel sender, PushNotificationReceivedEventArgs args) { Debug.Log("New Push Notification Received"); if (args.NotificationType == PushNotificationType.Raw) { // Raw content of the Notification string jsonContent = args.RawNotification.Content; // Deserialise the Raw content into an AzureTableEntity object AzureTableEntity ate = JsonConvert.DeserializeObject <AzureTableEntity>(jsonContent); // The name of the Game Object to be moved gameObjectName = ate.RowKey; // The position where the Game Object has to be moved newObjPosition = new Vector3((float)ate.X, (float)ate.Y, (float)ate.Z); // Flag thats a notification has been received notifReceived = true; } }