/// <summary> /// Adds mapping attribute to current entity. /// </summary> /// <param name="attribute">Mapping attribute to add.</param> /// <returns>Returns current fluent entity mapping builder.</returns> public EntityMappingBuilder <TEntity> HasAttribute(Attribute attribute) { _builder.HasAttribute(typeof(TEntity), attribute); return(this); }
/// <summary> /// Adds mapping attribute to current entity. /// </summary> /// <param name="attribute">Mapping attribute to add.</param> /// <returns>Returns current fluent entity mapping builder.</returns> public EntityMappingBuilder <TEntity> HasAttribute(MappingAttribute attribute) { _builder.HasAttribute(typeof(TEntity), attribute); _builder.MappingSchema.ResetID(); return(this); }