C# 클래스 Microsoft.Synchronization.Services.Formatters.ReflectionUtility

Class that will use .NET Reflection to serialize and deserialize an Entity to Atom/JSON
파일 보기 프로젝트 열기: rafek/SyncFx 1 사용 예제들

공개 메소드들

메소드 설명
ClearCache ( ) : void
GetObjectForType ( Microsoft.Synchronization.Services.Formatters.EntryInfoWrapper wrapper, Type knownTypes ) : IOfflineEntity
GetPrimaryKeyString ( IOfflineEntity live ) : string

Build the OData Atom primary keystring representation

GetPrimaryKeysPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]

Get the PropertyInfo array for all Key fields

GetPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]
SetDataTablePrimaryKeys ( DataTable table, Type type, string>.Dictionary mappingInfo ) : void

Reflects the Type to figure out which is the primary key for the DataTable

비공개 메소드들

메소드 설명
GetValueFromType ( Type type, string value ) : object

메소드 상세

ClearCache() 공개 정적인 메소드

public static ClearCache ( ) : void
리턴 void

GetObjectForType() 공개 정적인 메소드

public static GetObjectForType ( Microsoft.Synchronization.Services.Formatters.EntryInfoWrapper wrapper, Type knownTypes ) : IOfflineEntity
wrapper Microsoft.Synchronization.Services.Formatters.EntryInfoWrapper
knownTypes System.Type
리턴 IOfflineEntity

GetPrimaryKeyString() 공개 정적인 메소드

Build the OData Atom primary keystring representation
public static GetPrimaryKeyString ( IOfflineEntity live ) : string
live IOfflineEntity Entity for which primary key is required
리턴 string

GetPrimaryKeysPropertyInfoMapping() 공개 정적인 메소드

Get the PropertyInfo array for all Key fields
public static GetPrimaryKeysPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type Type to reflect on
리턴 System.Reflection.PropertyInfo[]

GetPropertyInfoMapping() 공개 정적인 메소드

public static GetPropertyInfoMapping ( Type type ) : System.Reflection.PropertyInfo[]
type System.Type
리턴 System.Reflection.PropertyInfo[]

SetDataTablePrimaryKeys() 공개 정적인 메소드

Reflects the Type to figure out which is the primary key for the DataTable
public static SetDataTablePrimaryKeys ( DataTable table, Type type, string>.Dictionary mappingInfo ) : void
table DataTable Table to set primary keys on
type System.Type Type to reflect
mappingInfo string>.Dictionary Global to Local column name mappings
리턴 void