Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject parameters to FluentMapping #375

Open
csharpdeveloper12 opened this issue Jun 4, 2017 · 2 comments
Open

Inject parameters to FluentMapping #375

csharpdeveloper12 opened this issue Jun 4, 2017 · 2 comments

Comments

@csharpdeveloper12
Copy link

Hello :),

i needed a posibility to distinguish in the FluentMapping-Files -> Call constructor with parameters.

So i have developed an function for inject parameters into a mapping (FluentMapping). I have customized among others the files "FluentMappingsContainer" and "PersistenceModel". So i can invoke map.AddFromAssembly(System.Reflection.Assembly.GetExecutingAssembly(), args.ToArray());
And it works :)

Now is my question whether you can implement this funtion directly in FluentNHibernate for this behavior so

  • i dont need to customize on every new release
  • and the solution is checked and nothing is forgotten in the source ;)

Thanks in advance
csharpdeveloper

@hazzik
Copy link
Member

hazzik commented Oct 12, 2022

@csharpdeveloper12 you should at least submit a PR if you want this to be included.

@matyasbach
Copy link

Static properties can be used as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants