public BrokerOfDataContract1() { this.type = typeof(TEntity); this.extension = HostType.GetType(type.FullName + EXTENSION); this.Schema = extension.GetTableSchemaFromType(); this.functionToDictionary = extension.GetMethod(nameof(ToDictionary), BindingFlags.Public | BindingFlags.Static); }
public bool IsSpChanged(string nameSpace, string className) { Type ty = HostType.GetType(string.Format("{0}.{1}", nameSpace, className)); if (ty != null) { FieldInfo field = ty.GetField(this.spDefVariable); if (field != null) { if ((string)field.GetValue(null) != this.spDef) { return(true); } } } return(false); }
private static Type GetType(string nameSpace, string className) { return(HostType.GetType(string.Format("{0}.{1}", nameSpace, className))); }
public ITableSchema GetSchmea(Type type) { var extension = HostType.GetType(type.FullName + EXTENSION); return(extension.GetTableSchemaFromType()); }