locked
How to remove the prefix generated by CrmSvcUtil RRS feed

  • Question

  • The code generated by "CrmSvcUtil" add a prefix to the solution (new_)

    How can I do so the prefix will not be there?

    Thanks

    Wednesday, October 10, 2012 12:35 PM

Answers

  • Correct - the prefix cannot be removed entirely.

    Jason Lattimer

    • Marked as answer by tr2bnc Wednesday, October 10, 2012 1:40 PM
    Wednesday, October 10, 2012 1:35 PM
    Moderator

All replies

  • Are you referring to the output generated for the individual fields? These prefixes are are generated as part of the schema at the time the fields are created and as such are not able to be changed short of removing the field and recreating. All custom fields get a prefix.

    Changing the custom entity prefix in Microsoft Dynamics CRM 2011

    [Microsoft.Xrm.Sdk.AttributeLogicalNameAttribute("new_test")]
    public System.Nullable<bool> new_test
    {
    	get
    	{
    		return this.GetAttributeValue<System.Nullable<bool>>("new_test");
    	}
    	set
    	{
    		this.OnPropertyChanging("new_test");
    		this.SetAttributeValue("new_test", value);
    		this.OnPropertyChanged("new_test");
    	}
    }


    Jason Lattimer

    Wednesday, October 10, 2012 1:15 PM
    Moderator
  • So the answer is so I cant do that? (Remove prefix - not change)
    Wednesday, October 10, 2012 1:32 PM
  • Correct - the prefix cannot be removed entirely.

    Jason Lattimer

    • Marked as answer by tr2bnc Wednesday, October 10, 2012 1:40 PM
    Wednesday, October 10, 2012 1:35 PM
    Moderator