Class FluentSettings
Inheritance
System.Object
FluentSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: WeihanLi.Npoi
Assembly: cs.temp.dll.dll
Syntax
public static class FluentSettings
Methods
For<TEntity>()
Fluent Setting For TEntity
Declaration
public static IExcelConfiguration<TEntity> For<TEntity>()
Returns
Type | Description |
---|---|
IExcelConfiguration<TEntity> | excel configuration for entity |
Type Parameters
Name | Description |
---|---|
TEntity | TEntity |
LoadMappingProfile<TMappingProfile>()
Load mapping profile for TEntity
Declaration
public static void LoadMappingProfile<TMappingProfile>()
where TMappingProfile : IMappingProfile, new()
Type Parameters
Name | Description |
---|---|
TMappingProfile | entity type mapping profile |
LoadMappingProfile<TEntity>(IMappingProfile<TEntity>)
Load mapping profile for TEntity
Declaration
public static void LoadMappingProfile<TEntity>(IMappingProfile<TEntity> profile)
Parameters
Type | Name | Description |
---|---|---|
IMappingProfile<TEntity> | profile | profile |
Type Parameters
Name | Description |
---|---|
TEntity | entity type |
LoadMappingProfile<TEntity, TMappingProfile>()
Load mapping profile for TEntity
Declaration
public static void LoadMappingProfile<TEntity, TMappingProfile>()
where TMappingProfile : IMappingProfile<TEntity>, new()
Type Parameters
Name | Description |
---|---|
TEntity | entity type |
TMappingProfile | entity type mapping profile |
LoadMappingProfiles(Assembly[])
Load mapping profiles
Declaration
public static void LoadMappingProfiles(params Assembly[] assemblies)
Parameters
Type | Name | Description |
---|---|---|
Assembly[] | assemblies | assemblies |
LoadMappingProfiles(Type[])
Load mapping profiles
Declaration
public static void LoadMappingProfiles(params Type[] types)
Parameters
Type | Name | Description |
---|---|---|
System.Type[] | types | mapping profile types |