public new void Type(Type type) { if (mapping.IsSpecified("Type")) { return; } mapping.Type = new TypeReference(type); }
/// <summary> /// offset added to index in column /// </summary> /// <remarks>mutual exclusive with Type()</remarks> /// <param name="offset">offset</param> public void Offset(int offset) { if (mapping.IsSpecified("Type")) { throw new NotSupportedException("Offset is mutual exclusive with Type()"); } mapping.Set(x => x.Offset, Layer.UserSupplied, offset); }
public new void ForeignKey(string foreignKey) { if (mapping.IsSpecified("ForeignKey")) { return; } mapping.ForeignKey = foreignKey; }
public T AsIndexedCollection <TIndex>(string indexColumn, Action <IndexPart> customIndexMapping) { CreateIndexMapping(customIndexMapping); if (!indexMapping.IsSpecified("Type")) { indexMapping.SetDefaultValue(x => x.Type, new TypeReference(typeof(TIndex))); } if (indexMapping.Columns.IsEmpty()) { indexMapping.AddDefaultColumn(new ColumnMapping { Name = indexColumn }); } return((T)this); }
public bool IsSet(Member property) { return(mapping.IsSpecified(mappedProperties.Get(property))); }