Nice MSDN article about best practices of EntityFramework migrations when you work in a team: Code First Migrations in Team Environments
-
EntityFramework migrations when working in team
-
Avoid using many-to-many mappings in Entity Framework
Jimmy Bogard published a good article why you should avoid many-to-many relationships in ORMS. This applied to EntityFramework as well. A short recap: use junction models!
-
EntityFramework commands reference
It’s weird there is no good official command reference for EntityFramework.
Here is a great unofficial one: https://coding.abel.nu/2012/03/ef-migrations-command-reference/ -
Overview of Gulp
Nice general overview of gulp: https://medium.com/@contrahacks/gulp-3828e8126466#.iau0fg1yz
-
.gitignore for Visual Studio C# projects
If you need ready-to-use .gitignore file for your Visual Studio/C# projects, here it is:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignoreThis file is a part of gitignore project which accumulates .gitignore for different languages/technologies.
-
Blog migrated
My blog migrated from Drupal to WordPress. WP looks more handy for webmasters and provides a lot of tools.
I’ll try to make this blog more alive than Flex is nowadays ) -
Link of the week: about git rebase
-
Attribute css selectors
I have found a nice page with a bunch of attribute selectors. Check it out.
-
TypeError: Error #1007: Instantiation attempted on a non-constructor
TypeError: Error #1007: Instantiation attempted on a non-constructor. If you see this error without any obvious reason it might be one more bug of Flash Player. Flash Player doesn’t allow to instantiate internal classes in static section. Brief example:
12345678package {public class A {static var b:B = new B();}}class B {}1234567891011121314package {public class A {static var b:B;public function A() {if (!b) {b = new B();}}}}class B {} -
describeType versus Object.prototype
I discovered that describeType fails if you defined a methods in Object.prototype
An example:
123456Object.prototype.hello = function():void {trace("hello");}var x:XML = describeType(Main);trace(x.factory.methods.(@name = "hello"));This code produces exception:
TypeError: Error #1010: A term is undefined and has no properties.Unfortunately I didn’t find any solution to fix it. Just try to not use Object.prototype .