/// <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);
 }
Beispiel #2
0
 /// <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);
 }