public static ISapConn CreateSession(IConfiguration configuration, ERPType databaseType, string key) { var isDefined = Enum.IsDefined(typeof(ERPType), databaseType); if (!isDefined) { throw new NotSupportedException(); } return(CreateConnection(configuration, databaseType, key)); }
private static ISapConn CreateConnection(IConfiguration configuration, ERPType dataType = ERPType.ECC6, string connStrKey = "") { SapConn conn; switch (dataType) { case ERPType.ECC6: conn = new SapConn(connStrKey); break; default: conn = new SapConn(connStrKey); break; } return(conn); }
public ErrorRasterProperties(Raster assoc) { AssociatedSurface = assoc; TheType = ERPType.ASSOC; }
public ErrorRasterProperties(FileInfo fisRuleFile, Dictionary <string, Raster> fisInputs) { FISRuleFile = fisRuleFile; FISInputs = fisInputs; TheType = ERPType.FIS; }
public ErrorRasterProperties(decimal uniformValue) { UniformValue = new decimal?(uniformValue); TheType = ERPType.UNIFORM; }