Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3985890
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:56:45+00:00 2026-05-20T05:56:45+00:00

Started working with FluentMigrator today and unfortunately, I am pretty sure I know the

  • 0

Started working with FluentMigrator today and unfortunately, I am pretty sure I know the answer to my question, but is there any nice way to get FluentMigrator to create a nonclustered primary key when using a Sql-Server provider?

I was hoping for something similar to. (which obviously doesn’t exist)..

  Create.Table("User")
        .WithColumn("Id").AsInt32().Identity().PrimaryKey().WithOptions().NonClustered()

The best option I have found thus far is using Execute with a SQL block which is far less than ideal… any better options?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:56:45+00:00Added an answer on May 20, 2026 at 5:56 am

    Unfortunately, the only course of action was to use:

    Execute.Script(path);
    

    Basically, FluentMigrator has become the tool to run the SQL scripts, but the fluent interface is being ignored. Basically, it is a script runner more than anything in my project at this point. Could probably roll our own, but the migration component works as expected. The Fluent interface is just too constraining, and you typically need DB specific features when defining tables etc to get best performance (being database agnostic is not really a good thing).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started working with nodejs. I wonder if there is a way
I started working on mysql c++ connector API. But I can't find any online
Just started working with Mercurial a few days ago and there's something I don't
I've just started working with Propel and I love it, but I have a
I started working with php and mysql today. Basically, what I have, is an
I started working my way through the Scala Koans , which is organized around
I started working on a concept that requires me to find a way to
I started working on page for my school project today, and I find myself
I started working with EmguCV, but I stumble upon a performance issue trying to
I've only recently started working with asp.net and c#. Is there a standard practice

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.