コード例 #1
0
        public JobDto AddJob(Job job)
        {
            using (var databaseConnection = new SQLiteConnection(new SQLitePlatformWP8(), this.DatabaseFilePath))
            {
                databaseConnection.RunInTransaction(() =>
                {
                    databaseConnection.Insert(job);
                });
            }

            return Mapper.Map<JobDto>(job);
        }
コード例 #2
0
 public JobDto AddJob(Job job)
 {
     this.jobs.Add(job);
     return Mapper.Map<JobDto>(job);
 }