internal IGNQueriable(IDataDriver dataDriver) { paramValues = new List <IGNParameterValue>(); this.dataDriver = dataDriver; canExecute = true; exists = true; }
private void Register(string name, IDataDriver <SourceContext> dataDriver) { var nodeDefinition = Attach(new NodeDefinition() { Name = name }); _nodeDefinitionProvider.Register(name, nodeDefinition); _nodeRegistry.Register(name, new BaseNode <SourceContext>(dataDriver, _nodeDefinitionProvider.GetByName(name))); }
static void CheckDataDriver(IDataDriver driver) { string id = driver.Create(new { name = "Fabricio" }); object original = driver.Read(id); bool wasUpdated = driver.Update(id, new { height = 10, width = 10 }); object modified = driver.Read(id); bool wasDeleted = driver.Delete(id); }
public string AsCreateTableQueryField( IDataDriver driver, GetDbTypeFunc getDbType, GetDefaultValueFunc getDefaultValue, GetDbAutoGenFunc getDbAutoGen) { return($"{SanitizeName(ColumnName, driver.Dialect)} {getDbType(ColumnType, Length, DecimalPositions)} " + $"{(Required ? "NOT NULL" : "NULL")}" + $"{getDefaultValue(Required, Generated, DefValue,driver.Dialect)}" + $"{getDbAutoGen(Generated, ColumnType, Length,driver)}"); }
public static IGNQueriable Begin(string email, IDataDriver dataDriver) { Activation.Activate(email); if (Activation.IsActive) { return(new IGNQueriable(dataDriver)); } else { throw new Exception("Please activate your copy of ignquery it's free of charge you just need to pass your email in constructor"); } }
public static IGNQueriable FromQueryString(string query, string email, IDataDriver dataDriver) { Activation.Activate(email); if (Activation.IsActive) { return(new IGNQueriable(dataDriver) { fullQuery = query, exists = true, canExecute = true }); } else { throw new Exception("Please activate your copy of ignquery it's free of charge you just need to pass your email in constructor"); } }
private static string GetDbAutoGenFunc(bool generated, Type clrType, int length, IDataDriver driver) { return(generated ? driver.GetDbAutoGenFor(clrType, length) : ""); }
public BaseNode(IDataDriver <TDataItem> driver, NodeDefinition nodeDefinition) { _driver = driver; _nodeDefinition = nodeDefinition; }