Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 private static Type GetType(string nameSpace, string className)
 {
     return(HostType.GetType(string.Format("{0}.{1}", nameSpace, className)));
 }
Example #4
0
        public ITableSchema GetSchmea(Type type)
        {
            var extension = HostType.GetType(type.FullName + EXTENSION);

            return(extension.GetTableSchemaFromType());
        }