コード例 #1
0
        public IEnumerable <ColumnDefinition> GetColumnsForComparison()
        {
            // TODO in case of integer primary keys:
            // If RdbmsProvider or one of its derived classes needs to support integer primary keys in addition to GUIDs,
            // two lookup columns should be used: ID and ClassID (because int IDs wouldn't be globally unique).
            // For GUID keys, we don't want to include the ClassID, however.

            return(_valueProperty.GetColumnsForComparison());
        }
コード例 #2
0
        private ColumnDefinition GetSingleColumnForLookup(IRdbmsStoragePropertyDefinition storagePropertyDefinition)
        {
            var columns = storagePropertyDefinition.GetColumnsForComparison().ToList();

            if (columns.Count > 1)
            {
                throw new NotSupportedException("Compound-column IDs are not supported by this LINQ provider.");
            }

            return(columns.Single());
        }
 public IEnumerable <ColumnDefinition> GetColumnsForComparison()
 {
     return(_valueProperty.GetColumnsForComparison());
 }
 public IEnumerable <ColumnDefinition> GetColumnsForComparison()
 {
     return(_serializedIDProperty.GetColumnsForComparison());
 }