Esempio n. 1
0
        internal PropertyBuilderBase GetPropertyBuilder(string entityNamespace, string entityName, string propertyName)
        {
            PropertyBuilderBase result = null;
            var entityBuilder          = GetEntityBuilder(entityNamespace, entityName);

            if (entityBuilder != null)
            {
                result = entityBuilder.GetPropertyBuilder(propertyName);
            }
            return(result);
        }
Esempio n. 2
0
 internal void CheckReference(PropertyBuilderBase foreignKeyProperty)
 {
     // TODO: Validation - referenced property should be primary key or have unique constraint
     PropertySpecificationBuilder.CheckReference(foreignKeyProperty.PropertySpecificationBuilder);
 }