I have 3 .edmx files (.msl, .csdl, .ssdl) in my root project directory where the web.config is. Why are these not updating when I do a 'update model from database'?
I have to manually add the new fields to these files...
.msl, .csdl and .ssdl are result of .edmx compilation, if you do not embedd them into assembly check that "EntityDeploy" is selected for "Build Action" in .edmx file properties (in Solution Explorer) and "Copy to Output Directory" is selected for "Metadata Artifact Processing" in model properties (in model designer), update your model and rebuild solution. After that they will be copied to bin\Debug subfolder.
BTW, you could select "Embedd into Output Assembly", update connection string, remove references to these files from solution and do not care about them anymore.
Related
Error wile import mapping on Informatica
When I try to import mapping on Informatica, I encounters an error as I explained below, so that I couldn't get the workflow also
Completed importing selected objects, there were some errors, please see output for more information,
Validating Target definition TGT_TBL_FUNCTION
06/03/16 10:45:40****Importing source definition:Credit_trans_txt
Validating source definition Credit_trans_txt
06/03/16 10:45:40****Importing source definition: src_sample
Object referenced by the shortcut does not exist in the original folder
Object will be imported under the current folder
06/03/16 10:45:40****Importing mapping:m_sample
Error: Could not find transformation definition for :Flat file src_sample
**Failed to import:m_sample
Kindly provide me a solution.
The actual reason is this 'shortcut does not exist in the original folder'. So source Flat file src_sample doesnt exist in your target repository's folder.
To elaborate, in your source repo, you may have a folder named 'shared' where this file definition src_sample exists. And you used it as shortcut in your own folder (say 'myfolder') where m_sample resides. While copying to target repository same shortcut should exist.
Depending on situation, solution may be like this -
Folder 'shared' may not be shared in target repository. Modify it as shared and then check if src_sample exists or not. If yes, just copy m_sample again. If no then follow step2.
copy that object definition src_sample first to target repository in 'shared' folder. Then try to copy m_sample
I have an old project (made for iOS4).
I am upgrading it now and try to add a model version to my Core Data model.
When I am trying to add the version from Xcode menu, it simply create a new version of the model and does not create the .modeld package.
I tried to change it manually but it douses many problems and the migration fails.
Why it won't let me create the .modeld file ?
Any idea how can I overcome this problem ?
Here is the image from Xcode navigator -
While it should be -
Thanks a lot
Xcode will always create a .xcdatamodel file for new model
versions. .xcdatamodeld is a file package that groups versions
of the model.
There's a workaround that you can do:
Create a new Data Model (File > New > File... > Core Data > Data Model) and give the model the same name as your current version (e.g. jerusalemBiblicalZoo).
Reveal the created jerusalemBiblicalZoo.xcdatamodeld on Finder
Right click on the file and select Show Package Contents so you will see a .xcdatamodel file there.
Override it with your old .xcdatamodel file. Then you will have the new data model structure using your old single model version.
if you want to create new version for coreData, don't recreate xcdatamodel.Click jerusalemBiblicalZoo.xcdatamodel and go to Editor->Add Model Version select base model and go on.
Getting error in accessing resource file string from MVC controller(working file with views)
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "TempNameSpace.App_GlobalResources.Resource_EN_US.resources" was correctly embedded or linked into assembly "TempNameSpace" at compile time, or that all the satellite assemblies required are loadable and fully signed.
What I have already done
1. Resource file build action : from content to Embedded resource
Result : Publish does not include resource files in it.
2. Added new resource file with name Resource.resx
Result : Same error
Solution hierarchy
1. Solution contains 4 projects, two with resource files(Resource.resx and Resource_EN_US under App_GlobalResources folder)
2. Designer for Resource_EN_US contains correct namespace
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TempNameSpace.App_GlobalResources.Resource_EN_US", typeof(Resource_EN_US).Assembly);
In my projects I use a seperate project for resources. I have set all resource files Build Action property to Embedded Resource.
On the reference to the resources project, I have Copy Local set to True for the resources project. (Rightclick a reference and select Properties)
If you have your resource files inside your web project, I think that the property corresponding with Copy Local should be Copy to Output Directory (Also accessible via rightclick and Properties).
Edit:
I see that in your comment you said that you access the file as Resource.Resource_EN_US.WaterMarkEmail but this is not the right way to access the files. You should access them as one single file: Resources.Property.
My files are named as: Standard.resx, Standard.en.resx, Standard.no.resx and so on. To access them I can use Standard.Property. The resource files will mold toghether, but only if you give them valid names. If you can access all your resource files individually, then you have not used the correct naming convention.
I recommend implementing a ResourceHelper that uses the ResourceManager to access the property that you need.
The snippet below is taken from a TFS build definition file.
<mtbwa:CopyDirectory Destination="[BuildDetail.DropLocation]" DisplayName="Copy Files to Drop Location" Source="[BinariesDirectory]..\Packages" />
Regarding the source attribute, I want to set the value to a particular folder destination, using an existing variable and then going up one level.
If the variable [BinariesDirectory] was equal to "C:\TFS\Binaries", I am trying to set the source to "C:\TFS\Packages", but it just does not understand ..\ and will actually look for a folder at "C:\TFS\Binaries..\Packages"
How can I go up a folder level?
Thanks in advance
Means that it elavates to parent folder, then submerge to PACKAGES
use double \
I am using Subsonic MVC Template from this project.
Here is a folder named [Code Template] which contains the .tt files for generating views and controllers. But that is giving me error
"MvcTextTemplateHost not found"
I want to generate the create/edit/list pages based on the tables generated by subsonic. How can I do that?
what you want is this:
http://github.com/subsonic/SubSonic-3.0/downloads
1 add subsonic dll to bin folder
2 add reference to that DLL
3 add a connection string to your web.config or app.config
add the connection string name to your ttinclude file
drag files into your models folder
you are then ready to go
http://subsonicproject.com/docs/The_5_Minute_Demo
brilliant up and running in like 10 mins