c# - Error when using Entity Framework partial class -


i using partial class add methods context object.

namespace addresscleansing {       public partial class service   {     internal void save()     {       result result = new result();       if (string.isnullorempty(accountcode))       {         string newaccountcode;         result = createaccount(out newaccountcode);       }     }   } } 

when attempt load web page (and not 1 uses code) there's compilation error:

description: error occurred during compilation of resource required service request. please review following specific error details , modify source code appropriately.

compiler error message: cs1061: 'addresscleansing.service' not contain definition 'accountcode' , no extension method 'accountcode' accepting first argument of type 'addresscleansing.service' found (are missing using directive or assembly reference?)

the app using code first entity framework.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -