Skip to content

Instantly share code, notes, and snippets.

@codeprogression
Created May 4, 2015 04:43
Show Gist options
  • Save codeprogression/028f1b3b3708f7500233 to your computer and use it in GitHub Desktop.
Save codeprogression/028f1b3b3708f7500233 to your computer and use it in GitHub Desktop.
IDatabaseConfiguration
namespace CodeProgression.FoodJournal.Core.Data
{
public interface IDatabaseConfiguration {
void Configure();
ITransactionWrapper GetTransaction();
bool IsValid{ get; }
void Register<T>(T instance) where T: class;
void Register<T, U>(U instance) where T:class where U: class;
T Resolve<T>() where T: class;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment