Skip to content

Instantly share code, notes, and snippets.

@ryansroberts
Created June 16, 2010 14:43
Show Gist options
  • Save ryansroberts/440792 to your computer and use it in GitHub Desktop.
Save ryansroberts/440792 to your computer and use it in GitHub Desktop.
AutoMap.Assemblies(AdditionalAssemblies.Concat(New () {Assembly.GetExecutingAssembly()}).ToArray()) _
.Where(Function(t) GetType(IEntity).IsAssignableFrom(t) OrElse t = GetType(TechnologySequence) OrElse t = GetType(DrugSequence) OrElse GetType(IEvent).IsAssignableFrom(t)) _
.Setup(Function(s) InlineAssignHelper(s.IsComponentType, Function(type) GetType(IValueObject).IsAssignableFrom(type)))_
.IncludeBase(GetType([Event])) _
.IncludeBase(GetType(AggregateEvent))_
.IncludeBase(GetType(ChangedCompanyUsers))
.Conventions _.AddFromAssemblyOf(Of PrimaryKeyNameConvention)().UseOverridesFromAssemblyOf(Of IEntity)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment