Exemple #1
0
        public string GetPropertyMapping(GDA.Mapping.TypeInfo typeInfo, string propertyName)
        {
            ClassMapping mapping = null;

            if (_mappings.TryGetValue(typeInfo.Fullname, out mapping))
            {
                var property = mapping.Properties.Find(f => f.Name == propertyName);
                return(property != null ? property.Column : null);
            }
            return(null);
        }
Exemple #2
0
        public TableName GetTableName(GDA.Mapping.TypeInfo typeInfo)
        {
            ClassMapping mapping = null;

            if (_mappings.TryGetValue(typeInfo.Fullname, out mapping))
            {
                return new TableName {
                           Name   = mapping.Table,
                           Schema = mapping.Schema
                }
            }
            ;
            return(null);
        }