Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .....
- ActionsJournal actionsJournalEntry =
- TestFactory.CreateActionEntry(.....);
- if (/* some condition */)
- {
- actionsJournalEntry.CreatedDate = DateTime.Now.AddDay(30); // else it will be null
- }
- ent.ActionsJournals.AddObject(actionsJournalEntry);
- ent.SaveChanges();
- ....
- public partial class ActionsJournal
- {
- public class ActionsJournal() {
- CreatedDate = DateTime.Now.AddDay(30);
- }
- }
Add Comment
Please, Sign In to add comment