Wow, no one else has attempted this?
THis is my Code:
static void Main(string[] args)
{
using (var bootstrapper = new AbpBootstrapper())
{
bootstrapper.Initialize();
var tester = IocManager.Instance.Resolve<Outstanding.OutstandingAppService>();
tester.ChangeAllDates(DateTime.Now, DateTime.Today.AddDays(2));
}
}
[DependsOn(typeof(AbpZeroEntityFrameworkModule), typeof(TestCoreModule))]
public class MyConsoleAppModule : AbpModule
{
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
}
}
public class DateProcessing : ITransientDependency
{
private readonly IOutstandingAppService _Outstanding;
publicDateProcessing(IOutstandingAppService Outstanding)
{
_Outstanding = Outstanding;
}
No work. Getting : An unhandled exception of type 'System.ArgumentNullException' occurred in Abp.Zero.dll
Additional information: Value cannot be null.
I found this: <a class="postlink" href="https://gist.github.com/hikalkan/caf54a092c929e4c558b">https://gist.github.com/hikalkan/caf54a092c929e4c558b</a>
But I am having no success.
Thanks Terry. My SQL profiler has been giving me trouble and I couldn't find any way to see how it was working underneath. Thanks a lot!
Hi Hikalkan, the error was mine. I had a previous set of models I was using to work with and were being left over. Sorry to waste your time!