コード例 #1
0
 /// <summary>
 /// Defines a mapping between a data entity type and a database object.
 /// </summary>
 /// <param name="databaseObjectName">The name of the database object (ie: Table, View).</param>
 /// <param name="force">A value that indicates whether to force the mapping. If one is already exists, then it will be overwritten.</param>
 /// <returns>The current instance.</returns>
 public EntityMapFluentDefinition <TEntity> Table(string databaseObjectName,
                                                  bool force)
 {
     ClassMapper.Add <TEntity>(databaseObjectName, force);
     return(this);
 }
コード例 #2
0
 /// <summary>
 /// Defines a mapping between a class and a database object.
 /// </summary>
 /// <param name="name">The name of the database object (ie: Table, View).</param>
 /// <param name="force">A value that indicates whether to force the mapping. If one is already exists, then it will be overwritten.</param>
 /// <returns>The current instance.</returns>
 public EntityMapFluentDefinition <TEntity> Table(string name,
                                                  bool force)
 {
     ClassMapper.Add <TEntity>(name, force);
     return(this);
 }
コード例 #3
0
 protected ClassMap <T> Table(string table)
 {
     ClassMapper.Add <T>(table);
     return(this);
 }
コード例 #4
0
 /// <summary>
 /// Maps the equivalent database object to be used (ie: Table or View).
 /// </summary>
 /// <param name="table">The target database object name.</param>
 /// <param name="force">A value that indicates whether to force the mapping. If one is already exists, then it will be overwritten.</param>
 /// <returns>The current instance.</returns>
 protected ClassMap <TEntity> Table(string table,
                                    bool force)
 {
     ClassMapper.Add <TEntity>(table, force);
     return(this);
 }