The reason, why you are getting ORA-02289 is because there is no information where to look for a sequence.
All you need to do is to add the [Sequence()] attribute at the top of a class where your data model class is defined. If you would have a data table TABLE1 and a corresponding sequence SEQ_TABLE1 defined in Oracle database, then your example would be:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ServiceStack.DataAnnotations;
namespace OraTest
{
public class Table1
{
[AutoIncrement]
[Sequence("SEQ_TABLE1")]
public int Id { get; set; }
public string Field_1 { get; set; }
public string Field_2 { get; set; }
}
}
This should now add new records into Oracle table, using the sequence as defined.