SqliteRunIntervalType.Insert C# (CSharp) Method

Insert() public static method

public static Insert ( RunType, t, string tableName, bool dbconOpened ) : int
t RunType,
tableName string
dbconOpened bool
return int
    public static new int Insert(RunType t, string tableName, bool dbconOpened)
    {
        return Insert(t, tableName, dbconOpened, dbcmd);
    }

Same methods

SqliteRunIntervalType::Insert ( RunType, t, string tableName, bool dbconOpened, SqliteCommand mycmd ) : int

Usage Example

    public string UploadRunIntervalType(RunType type, int evalSID)
    {
        string typeServer = type.Name + "-" + evalSID.ToString();

        Console.WriteLine("RUN_I" + typeServer + ":" + type.Distance + ":" + type.Description);
        if (!Sqlite.Exists(false, Constants.RunIntervalTypeTable, typeServer))
        {
            type.Name = typeServer;
            SqliteRunIntervalType.Insert(type, Constants.RunIntervalTypeTable, false);
            return(typeServer);
        }
        return("-1");
    }
All Usage Examples Of SqliteRunIntervalType::Insert