Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public ErrorRasterProperties(Raster assoc)
 {
     AssociatedSurface = assoc;
     TheType           = ERPType.ASSOC;
 }
Esempio n. 4
0
 public ErrorRasterProperties(FileInfo fisRuleFile, Dictionary <string, Raster> fisInputs)
 {
     FISRuleFile = fisRuleFile;
     FISInputs   = fisInputs;
     TheType     = ERPType.FIS;
 }
Esempio n. 5
0
 public ErrorRasterProperties(decimal uniformValue)
 {
     UniformValue = new decimal?(uniformValue);
     TheType      = ERPType.UNIFORM;
 }