public virtual void CopyFrom(UDFMetadata item) { this.Name = item.Name; this.Type = item.Type; this.Display = item.Display; this.Mandatory = item.Mandatory; }
private void TestGetEdmType(string type, UDFType udfType) { // Setup var metadata = new UDFMetadata { Type = udfType }; // Act var result = metadata.GetEdmType(); // Assert Assert.AreEqual(type, result); }
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; } }
private void TestGetEdmType(string type, UDFType udfType) { // Setup var metadata = new UDFMetadata { Type = udfType }; // Act var result = metadata.GetEdmType(); // Assert Assert.AreEqual(type, result); }