Exemplo n.º 1
0
 public virtual void CopyFrom(UDFMetadata item)
 {
     this.Name = item.Name;
     this.Type = item.Type;
     this.Display = item.Display;
     this.Mandatory = item.Mandatory;
 }
Exemplo n.º 2
0
        private void TestGetEdmType(string type, UDFType udfType)
        {
            // Setup
            var metadata = new UDFMetadata {
                Type = udfType
            };

            // Act
            var result = metadata.GetEdmType();

            // Assert
            Assert.AreEqual(type, result);
        }
Exemplo n.º 3
0
 public void SetUDFType(string entityType)
 {
     switch (entityType)
     {
         case "Edm.Boolean":
             this.Type = UDFType.Bool;
             break;
         case "Edm.Double":
             this.Type = UDFType.Double;
             break;
         case "Edm.Guid":
             this.Type = UDFType.Guid;
             break;
         case "Edm.Int32":
             this.Type = UDFType.Integer;
             break;
         case "Edm.Int64":
             this.Type = UDFType.Long;
             break;
         default:
             this.Type = UDFType.String;
             break;
     }
 }
Exemplo n.º 4
0
        private void TestGetEdmType(string type, UDFType udfType)
        {
            // Setup
            var metadata = new UDFMetadata { Type = udfType };

            // Act
            var result = metadata.GetEdmType();

            // Assert
            Assert.AreEqual(type, result);
        }