public IEnumerable <XMIoT.Framework.Attribute> GetInputAttributes(string endpoint, IDictionary <string, string> parameters) { this.config = new Configuration() { Parameters = parameters }; if (UsingStoredProc) { return(SQLHelpers.GetStoredProcInParams(this.SQLServer, this.SQLUser, this.SQLUseSQLAuth, this.SQLPassword, this.SQLDatabase, this.StoredProc) .Select(p => new XMIoT.Framework.Attribute(p.ParameterName.TrimStart(new char[] { '@' }), SQLHelpers.GetSystemType(p.DbType).GetIoTType()))); } else if (CreateTable == false) { return(SQLHelpers.GetColumns(this.SQLServer, this.SQLUser, this.SQLUseSQLAuth, this.SQLPassword, this.SQLDatabase, this.SQLTable) .Where(c => !c.AutoIncrement && !c.ReadOnly) .Select(col => new XMIoT.Framework.Attribute(col.ColumnName, col.DataType.GetIoTType()))); } else { return(new XMIoT.Framework.Attribute[0]); } }