This question is locked. New answers and comments are not allowed.
Given the following method...
Is there a way to use this to validate a datatype for the property? I might have been staring at it too long, but I can't seem to find a property on the meta objects...
Steve
public void CheckProperty(string className, string propertyName) { MetaPersistentType metaPersistentType = this.Container.PersistentTypes.FirstOrDefault(pt => pt.Name.Equals(className)); Assert.IsNotNull(metaPersistentType); MetaMember metaMember = metaPersistentType.Members.FirstOrDefault(mm => mm.PropertyName.Equals(propertyName)); Assert.IsNotNull(metaMember, "Can't find Property:" + propertyName + " in " + className); Assert.IsInstanceOfType(metaMember, typeof(MetaPrimitiveMember), String.Format("Type mismatch on class {0}, property {1}, maybe it's a collection instead?", className, propertyName)); }Is there a way to use this to validate a datatype for the property? I might have been staring at it too long, but I can't seem to find a property on the meta objects...
Steve