I'm adding my InfoObject using code below:
public
static
void
AddArticle(ArticleInfo Article)
{
using
(IDataContext context = DataContext.Instance())
{
var repository = context.GetRepository<ArticleInfo>();
repository.Insert(Article);
}
}
How can I know the ID of the inserted item?
usually I would use SELECT SCOPE_IDENTITY?
but repository.Insert(Article); is of type void?
thanks