public AddFile ( Microsoft.Research.DataOnboarding.DomainModel.File newFile ) : Microsoft.Research.DataOnboarding.DomainModel.File | ||
newFile | Microsoft.Research.DataOnboarding.DomainModel.File | File object |
return | Microsoft.Research.DataOnboarding.DomainModel.File |
public File AddFile(File newFile)
{
Check.IsNotNull<File>(newFile, "newFile");
return Context.Files.Add(newFile);
}
private void AddFile(File fileToAdd) { IFileRepository repository = new FileRepository(testDBContext); repository.AddFile(fileToAdd); testDBContext.Commit(); }